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:
parent
72a52eb33f
commit
a47d080657
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user