1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-10 18:00:13 +01:00

fix: share expiration never doesn't work if using another language than English

This commit is contained in:
Elias Schneider 2023-07-31 16:34:24 +02:00
parent 72a52eb33f
commit a47d080657
No known key found for this signature in database
GPG Key ID: 07E623B294202B6C

View File

@ -119,7 +119,7 @@ const CreateUploadModalBody = ({
form.setFieldError("link", t("upload.modal.link.error.taken")); form.setFieldError("link", t("upload.modal.link.error.taken"));
} else { } else {
const expiration = form.values.never_expires const expiration = form.values.never_expires
? t("upload.modal.expires.never") ? "never"
: form.values.expiration_num + form.values.expiration_unit; : form.values.expiration_num + form.values.expiration_unit;
uploadCallback({ uploadCallback({
id: values.link, id: values.link,