Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove inconsistent trim in one direction

Manav Rathia1e3cdd5d27a
diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsx
index 90f366b91e..189bdb07bc 100644
--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx
@@ -1644,15 +1644,10 @@ const SetPublicLinkPassword: React.FC<SetPublicLinkPasswordProps> = ({
}) => {
const savePassword: SingleInputFormProps["onSubmit"] = async (
passphrase,
- setFieldError,
) => {
- if (passphrase && passphrase.trim().length >= 1) {
- await enablePublicUrlPassword(passphrase);
- publicShareProp.passwordEnabled = true;
- onClose();
- } else {
- setFieldError(t("required"));
- }
+ await enablePublicUrlPassword(passphrase);
+ publicShareProp.passwordEnabled = true;
+ onClose();
};
const enablePublicUrlPassword = async (password: string) => {