Skip to content

Commit

Permalink
fix incorrect decimals for some tokens (#3289)
Browse files Browse the repository at this point in the history
  • Loading branch information
callensm authored Mar 11, 2023
1 parent 9810c50 commit ad62d85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/recoil/src/atoms/solana/token.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

1 comment on commit ad62d85

@vercel
Copy link

@vercel vercel bot commented on ad62d85 Mar 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.