Skip to content

Commit

Permalink
Fix error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
da-kami committed Aug 2, 2021
1 parent f94a30f commit 90130e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/src/components/CreateWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ function CreateWallet({ onUnlock }: CreateWalletProps) {
await createWalletFromBip39(backedUpSeedWords, password);
onUnlock();
},
onReject: (e) => debug("Failed to unlock wallet: %s", e),
onReject: (e) => debug("Failed to create wallet: %s", e),
});
let { run: newSeedWords, isPending: isGeneratingSeedWords, isRejected: generatingSeedWordsFailed } = useAsync({
deferFn: async () => {
let words = await bip39SeedWords();
setSeedWords(words);
},
onReject: (e) => debug("Failed to unlock wallet: %s", e),
onReject: (e) => debug("Failed to generate seed words: %s", e),
});

return (
Expand Down

0 comments on commit 90130e4

Please sign in to comment.