Fix bug in validating password length
This commit is contained in:
parent
bb456850f0
commit
fe96581ca9
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue