From 1e3e5e7c8bcc0dea047610f0b626040fe7dc25cd Mon Sep 17 00:00:00 2001 From: Esther Breath Date: Sat, 14 Dec 2024 10:46:40 +0000 Subject: [PATCH] fix: auto-update mechanism --- packages/app/src/systems/Home/pages/Home/Home.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/app/src/systems/Home/pages/Home/Home.tsx b/packages/app/src/systems/Home/pages/Home/Home.tsx index bc6c0e0b6..cfe645752 100644 --- a/packages/app/src/systems/Home/pages/Home/Home.tsx +++ b/packages/app/src/systems/Home/pages/Home/Home.tsx @@ -1,5 +1,5 @@ import { cssObj } from '@fuel-ui/css'; -import { Box } from '@fuel-ui/react'; +import { Box, toast } from '@fuel-ui/react'; import { useNavigate } from 'react-router-dom'; import { BalanceWidget, useAccounts } from '~/systems/Account'; import { Layout, Pages, scrollable } from '~/systems/Core'; @@ -20,6 +20,10 @@ export function Home() { const goToReceive = () => { navigate(Pages.receive()); }; + + useEffect(()=>{ + toast.success("account updated successfully") + },[account?.address,account?.balanceSymbol]) return (