Skip to content

Commit

Permalink
Merge pull request #153 from dappforce/fix-balances
Browse files Browse the repository at this point in the history
Use available balance instead of free balance
  • Loading branch information
olehmell authored Dec 19, 2023
2 parents fcdea92 + d5d5d21 commit b105ab0
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 b105ab0

Please sign in to comment.