diff --git a/app/assets/javascripts/ui_models/application.ts b/app/assets/javascripts/ui_models/application.ts index dad9bd931..8046e8731 100644 --- a/app/assets/javascripts/ui_models/application.ts +++ b/app/assets/javascripts/ui_models/application.ts @@ -168,13 +168,14 @@ export class WebApplication extends SNApplication { } async performProtocolUpgrade() { - const errors = await this.upgradeProtocolVersion(); - if (!errors || errors.length === 0) { + const result = await this.upgradeProtocolVersion(); + if (result.success) { this.alertService!.alert( "Success! Your encryption version has been upgraded." + " You'll be asked to enter your credentials again on other devices you're signed into." ); - } else { + } else if (result.error) { + console.error(result.error); this.alertService!.alert( "Unable to upgrade encryption version. Please try again." );