Skip to content

Commit

Permalink
Merge pull request #305 from reflexer-labs/develop
Browse files Browse the repository at this point in the history
fix rai balance issue on safe details
  • Loading branch information
mstfash authored Mar 7, 2022
2 parents 5434188 + 0ea90bc commit 585ff15
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 585ff15

Please sign in to comment.