Skip to content

Commit

Permalink
fix rai balance issue on safe details
Browse files Browse the repository at this point in the history
  • Loading branch information
mstfash committed Mar 7, 2022
1 parent 1d47a1f commit 0ea90bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hooks/useSafe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ export function useSafeInfo(type: SafeTypes = 'create') {
}, [safeData])

const { leftInput, rightInput } = parsedAmounts
const tokenBalances = useTokenBalances(account as string)
const { eth, rai } = useTokenBalances(account as string)

const balances = useMemo(() => {
return {
eth: tokenBalances.eth.balance,
rai: tokenBalances.rai.balance,
eth: eth.balance,
rai: rai.balance,
}
}, [tokenBalances])
}, [eth, rai])

const { eth: ethBalance, rai: raiBalance } = balances

Expand Down

0 comments on commit 0ea90bc

Please sign in to comment.