Skip to content

Commit

Permalink
fix: token selector includes readonly balance
Browse files Browse the repository at this point in the history
  • Loading branch information
tien committed Jul 7, 2023
1 parent 01ba969 commit 7013ecc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/components/widgets/TokenSelectorButton.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Cryptoticon from '@components/recipes/Cryptoticon/Cryptoticon'
import TokenSelectorDialog from '@components/recipes/TokenSelectorDialog'
import { balancesState } from '@domains/balances/recoils'
import { selectedBalancesState } from '@domains/balances/recoils'
import type { IToken } from '@talismn/chaindata-provider'
import { Decimal } from '@talismn/math'
import { Button } from '@talismn/ui'
Expand All @@ -15,7 +15,7 @@ export type TokenSelectorProps<T extends IToken | string> = {

const TokenSelectorButton = <T extends IToken | string>(props: TokenSelectorProps<T>) => {
const [tokenSelectorDialogOpen, setTokenSelectorDialogOpen] = useState(false)
const balances = useRecoilValue(balancesState)
const balances = useRecoilValue(selectedBalancesState)

const tokensWithBalance = useMemo(
() =>
Expand Down

0 comments on commit 7013ecc

Please sign in to comment.