Skip to content

Commit

Permalink
fix(PrimaryModal): allows no password for downloading backup (#18193)
Browse files Browse the repository at this point in the history
  • Loading branch information
olafsulich authored Oct 21, 2024
1 parent f072d6c commit 3ecd6b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/components/Modals/PrimaryModal/PrimaryModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const PrimaryModalComponent: FC = () => {
const isModalVisible = currentId !== null;
const passwordValueRef = useRef<HTMLInputElement>(null);
const [isFormSubmitted, setIsFormSubmitted] = useState(false);
const isBackupPasswordValid = useMemo(() => passwordInput && isValidPassword(passwordInput), [passwordInput]);
const isBackupPasswordValid = useMemo(() => passwordInput === '' || isValidPassword(passwordInput), [passwordInput]);

const {
checkboxLabel,
Expand Down

0 comments on commit 3ecd6b8

Please sign in to comment.