Skip to content

Commit 93f2dd2

Browse files
committed
feat: update wallet balance in database on navbar render
BUG: Balance isn't updated in the database after it's loaded inside your wallet #2
1 parent ccf4205 commit 93f2dd2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/renderer/src/app/wallets/[id]/components/WalletNavbar.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ export const WalletNavbar: FC<WalletNavbarProps> = ({
9494
}),
9595
)
9696

97+
await window.dbAPI.updateBalance(walletData.address, String(balanceWART))
98+
9799
return {
98100
balanceWART,
99101
balanceUSD,

0 commit comments

Comments
 (0)