Skip to content

Commit

Permalink
fixed balance not showing on txn
Browse files Browse the repository at this point in the history
Signed-off-by: aritroCoder <[email protected]>
  • Loading branch information
aritroCoder committed Dec 10, 2023
1 parent a1849a0 commit d69a7ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/site/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ const Index = () => {
try {
await sendCoin(recipientAddress, sendAmount);
const updatedBalance = await sendGetBalance();
setBalance(updatedBalance.balance);
setBalance(updatedBalance);
} catch (error) {
console.error(error);
dispatch({ type: MetamaskActions.SetError, payload: error });
Expand All @@ -343,7 +343,7 @@ const Index = () => {
try {
await sendFundMe();
const updatedBalance = await sendGetBalance();
setBalance(updatedBalance.balance);
setBalance(updatedBalance);
} catch (error) {
console.error(error);
dispatch({ type: MetamaskActions.SetError, payload: error });
Expand Down

0 comments on commit d69a7ae

Please sign in to comment.