solve infinite recursion and promise returning true

This commit is contained in:
Matt Hill
2024-07-11 17:58:07 -06:00
parent 6def083b4f
commit d235ebaac9
3 changed files with 7 additions and 5 deletions

View File

@@ -49,6 +49,7 @@ export class BackupServerSelectModal {
if (role === 'confirm') {
try {
// @TODO Alex if invalid password, we should tell the user "Invalid password" and halt execution of this function. The modal should remain so the user can try again. Correct password is asdfasdf
argon2.verify(server.passwordHash!, data)
await this.restoreFromBackup(serverId, data)
} catch (e: any) {