From 380430c0389f6558504f552d6b1bca423dd86182 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Sun, 8 Oct 2023 23:10:51 +0530 Subject: [PATCH] Use updated key from 'Status' enum --- src/domain/AccountSetupViewModel.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/domain/AccountSetupViewModel.js b/src/domain/AccountSetupViewModel.js index 3e643582..d62465ef 100644 --- a/src/domain/AccountSetupViewModel.js +++ b/src/domain/AccountSetupViewModel.js @@ -56,7 +56,7 @@ class DecryptDehydratedDeviceViewModel extends ViewModel { super(accountSetupViewModel.options); this._accountSetupViewModel = accountSetupViewModel; this._isBusy = false; - this._status = Status.SetupKey; + this._status = Status.SetupWithRecoveryKey; this._error = undefined; this._decryptedCallback = decryptedCallback; } @@ -92,15 +92,15 @@ class DecryptDehydratedDeviceViewModel extends ViewModel { } showPhraseSetup() { - if (this._status === Status.SetupKey) { - this._status = Status.SetupPhrase; + if (this._status === Status.SetupWithRecoveryKey) { + this._status = Status.SetupWithPassphrase; this.emitChange("status"); } } showKeySetup() { - if (this._status === Status.SetupPhrase) { - this._status = Status.SetupKey; + if (this._status === Status.SetupWithPassphrase) { + this._status = Status.SetupWithRecoveryKey; this.emitChange("status"); } }