Skip to content

Commit

Permalink
Fix error handling in SetupPassword component
Browse files Browse the repository at this point in the history
  • Loading branch information
truemiller committed Apr 4, 2024
1 parent add3eaf commit 9d2acd1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/components/Setup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,14 @@ const SetupPassword = () => {
AccountService.createAccount(password)
.then(() => AccountService.loginAccount(password))
.then(() => WalletService.createEoa(Chain.GNOSIS))
.then(({ mnemonic }) => {
.then(({ mnemonic }: { mnemonic: string[] }) => {
setMnemonic(mnemonic);
goto(SetupScreen.Backup);
})
.catch((e) => {
console.error(e);
message.error('Error creating account');
})
.finally(() => setIsLoading(false));
};

Expand Down

0 comments on commit 9d2acd1

Please sign in to comment.