Skip to content

Commit

Permalink
Use available balance instead of free balance
Browse files Browse the repository at this point in the history
  • Loading branch information
samchuk-vlad committed Dec 19, 2023
1 parent fcdea92 commit d5d5d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/common/balances/Balance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const useCreateBalance = (address?: AnyAccountId) => {

const sub = async () => {
unsub = await api.derive.balances.all(address, data => {
const balance = data.freeBalance
const balance = data.availableBalance
isMounted && setBalance(balance)
})
}
Expand Down

0 comments on commit d5d5d21

Please sign in to comment.