Skip to content

Commit

Permalink
Merge pull request #1143 from vector-im/fix-1142
Browse files Browse the repository at this point in the history
Fix missing UI elements in AccountSetupView
  • Loading branch information
MidhunSureshR authored Oct 8, 2023
2 parents fa8bd2e + 380430c commit eae0b1a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/domain/AccountSetupViewModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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");
}
}
Expand Down

0 comments on commit eae0b1a

Please sign in to comment.