From 84c2d54a0442e8724f0652fb05af08826a52fa0b Mon Sep 17 00:00:00 2001 From: Douglas Daniel Date: Mon, 4 Oct 2021 13:38:34 -0600 Subject: [PATCH] Fixed Verify Recovery Phrase rerender bug --- components/brave_wallet_ui/page/container.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/brave_wallet_ui/page/container.tsx b/components/brave_wallet_ui/page/container.tsx index c094f3aa008b..1b2e485892ac 100644 --- a/components/brave_wallet_ui/page/container.tsx +++ b/components/brave_wallet_ui/page/container.tsx @@ -240,7 +240,9 @@ function Container (props: Props) { return false }, [invalidMnemonic]) - const recoveryPhrase = (mnemonic || '').split(' ') + const recoveryPhrase = React.useMemo(() => { + return (mnemonic || '').split(' ') + }, [mnemonic]) // This will scrape all of the user's accounts and combine the asset balances for a single asset const fullAssetBalance = (asset: TokenInfo) => {