From a47d080657e1d08ef06ec7425d8bdafd5a26c24a Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Mon, 31 Jul 2023 16:34:24 +0200 Subject: [PATCH] fix: share expiration never doesn't work if using another language than English --- frontend/src/components/upload/modals/showCreateUploadModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/upload/modals/showCreateUploadModal.tsx b/frontend/src/components/upload/modals/showCreateUploadModal.tsx index da72669a..18f4cccd 100644 --- a/frontend/src/components/upload/modals/showCreateUploadModal.tsx +++ b/frontend/src/components/upload/modals/showCreateUploadModal.tsx @@ -119,7 +119,7 @@ const CreateUploadModalBody = ({ form.setFieldError("link", t("upload.modal.link.error.taken")); } else { const expiration = form.values.never_expires - ? t("upload.modal.expires.never") + ? "never" : form.values.expiration_num + form.values.expiration_unit; uploadCallback({ id: values.link,