Fix bug in validating password length

This commit is contained in:
Neeraj Gupta 2022-03-03 22:00:09 +05:30
parent bb456850f0
commit fe96581ca9
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -210,7 +210,7 @@ function CollectionShare(props: Props) {
{ linkPassword }: passFormValues,
{ setFieldError }: FormikHelpers<passFormValues>
) => {
if (linkPassword && linkPassword.length > 1) {
if (linkPassword && linkPassword.trim().length >= 1) {
setConfigurePassword(!configurePassword);
await enablePublicUrlPassword(linkPassword);
} else {