web: ask for password if backup encryption if off

This commit is contained in:
Abdullah Atta
2023-09-13 12:48:58 +05:00
parent e90c401503
commit 30da041ea3

View File

@@ -50,7 +50,7 @@ export const BackupExportSettings: SettingsGroup[] = [
)
useSettingStore.getState().toggleEncryptBackups();
const verified =
!useSettingStore.getState().encryptBackups ||
useSettingStore.getState().encryptBackups ||
(await verifyAccount());
if (verified) await createBackup();
},