mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-14 09:14:05 +01:00
CWA-152 | fixed bug
This commit is contained in:
@@ -62,10 +62,16 @@ class _RestoreFromSeedFormState extends State<RestoreFromSeedForm> {
|
||||
alignment: Alignment.bottomCenter,
|
||||
child: PrimaryButton(
|
||||
onPressed: () {
|
||||
walletRestorationStore.validateSeed(_seedKey.currentState.items);
|
||||
_seedKey.currentState.setErrorMessage(walletRestorationStore.errorMessage);
|
||||
|
||||
if (!walletRestorationStore.isValid) {
|
||||
_seedKey.currentState.invalidate();
|
||||
return;
|
||||
}
|
||||
|
||||
_seedKey.currentState.validated();
|
||||
|
||||
Navigator.of(context).pushNamed(
|
||||
Routes.restoreWalletFromSeedDetails,
|
||||
arguments: _seedKey.currentState.items);
|
||||
|
||||
Reference in New Issue
Block a user