mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-28 11:34:52 +01:00
fix: switch "seed" to "recovery phrase" in more places and handle edgecases for seed verification reminders
This commit is contained in:
@@ -1148,7 +1148,7 @@ abstract class DashboardViewModelBase with Store {
|
||||
@action
|
||||
Future<void> dismissSeedBackupReminder() async {
|
||||
showSeedBackupReminder = false;
|
||||
await wallet.walletInfo.updateShowSeedBackupReminder(false);
|
||||
await wallet.walletInfo.clearSeedBackupReminder();
|
||||
}
|
||||
|
||||
@action
|
||||
|
||||
@@ -164,6 +164,7 @@ abstract class WalletNewVMBase extends WalletCreationVM with Store {
|
||||
@override
|
||||
Future<WalletBase> process(WalletCredentials credentials) async {
|
||||
walletCreationService.changeWalletType(type: type);
|
||||
credentials.walletInfo!.showSeedBackupReminder = newWalletArguments!.mnemonic == null;
|
||||
return walletCreationService.create(credentials, isTestnet: useTestnet);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -153,6 +153,6 @@ abstract class WalletSeedViewModelBase with Store {
|
||||
return;
|
||||
}
|
||||
|
||||
await _walletInfo.updateShowSeedBackupReminder(false);
|
||||
await _walletInfo.clearSeedBackupReminder();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user