diff --git a/src/components/Profile.tsx b/src/components/Profile.tsx index d280e862..453a5a69 100644 --- a/src/components/Profile.tsx +++ b/src/components/Profile.tsx @@ -1,6 +1,6 @@ import { Popover } from '@headlessui/react'; import { useGlobalState } from '@src/store'; -import { formatWalletAddress } from '@src/utils'; +import { formatBalance, formatWalletAddress } from '@src/utils'; import { forwardRef, useState } from 'react'; import Button, { ButtonType } from './Button'; import { @@ -33,6 +33,7 @@ const Profile = () => { ); const wallet = useGlobalState((state) => state.wallet); + const balances = useGlobalState((state) => state.balances); const updateWallet = useGlobalState((state) => state.updateWallet); const walletAddress = useGlobalState((state) => state.walletAddress); @@ -47,16 +48,18 @@ const Profile = () => {
- {formatWalletAddress(walletAddress)} + {formatWalletAddress(walletAddress.toString())}
IO Balance
- 13.7k + {formatBalance(balances.io)}
AR Balance
-
0.06
+
+ {formatBalance(balances.ar)} +