From ad62d85b03a79451209a4dc9aa51a2250f87c07c Mon Sep 17 00:00:00 2001 From: Matthew Callens Date: Fri, 10 Mar 2023 19:09:36 -0500 Subject: [PATCH] fix incorrect decimals for some tokens (#3289) --- packages/recoil/src/atoms/solana/token.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/recoil/src/atoms/solana/token.tsx b/packages/recoil/src/atoms/solana/token.tsx index d6c9fb3db..fa0a4b5f1 100644 --- a/packages/recoil/src/atoms/solana/token.tsx +++ b/packages/recoil/src/atoms/solana/token.tsx @@ -284,6 +284,9 @@ export const solanaFungibleTokenNativeBalance = selectorFamily< decimals: tokenMint.decimals, } : tokenRegistryItem ?? ({} as TokenInfo); + + decimals = tokenMint ? tokenMint.decimals : tokenRegistryItem.decimals; + if (tokenRegistryItem) { if (ticker === "") { ticker = tokenRegistryItem.symbol;