Skip to content

Commit

Permalink
add missing case
Browse files Browse the repository at this point in the history
  • Loading branch information
SorinC6 committed Dec 17, 2024
1 parent a95c973 commit 75735e9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ const HeaderSection = ({ tokenInfo }: Props): JSX.Element => {
const tokenQuantityAsBigInt = bigNumberToBigInt(new BigNumber(tokenInfo.quantity));
const tokenDecimals = !isPrimaryToken && tokenInfo.info.numberOfDecimals;

if (tokenPrice === undefined && !isPrimaryToken) {
return '-';
}

const totaPrice = atomicBreakdown(tokenQuantityAsBigInt, tokenDecimals)
.bn.times(tokenPrice ?? 1)
.times(String(ptPrice))
Expand Down

0 comments on commit 75735e9

Please sign in to comment.