Skip to content

Commit

Permalink
render oasis token
Browse files Browse the repository at this point in the history
  • Loading branch information
marxeille committed Feb 1, 2024
1 parent ab1fada commit 8a219da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/mobile/src/screens/home/tokens-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ export const TokensCard: FunctionComponent<{
>
$
{`${
oasisBalance
oasisBalance && priceStore?.getPrice(item.coinGeckoId)
? (
parseFloat(new Big(parseInt(oasisBalance)).toString()) *
Number(priceStore?.getPrice(item.coinGeckoId))
).toFixed(6)
: 0
}` || '$0'}
}` || '$--'}
</Text>
</View>
</View>
Expand All @@ -178,7 +178,7 @@ export const TokensCard: FunctionComponent<{

const renderTokens = () => {
if (ChainIdEnum.Oasis === chainStore.current.chainId) {
renderOasisToken();
return renderOasisToken();
} else {
if (tokens?.length > 0) {
return tokens.slice(0, 3).map((token, index) => {
Expand Down

0 comments on commit 8a219da

Please sign in to comment.