Skip to content

Commit

Permalink
fix: lint calcToken param TS
Browse files Browse the repository at this point in the history
  • Loading branch information
digiwand committed Jan 16, 2025
1 parent bba92a3 commit 31b3faa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const SimulationValueDisplay: React.FC<
tokenDetails as TokenDetailsERC20,
);

const tokenAmount = isNumberValue(value) && !tokenId ? calcTokenAmount(value, tokenDecimals) : null;
const tokenAmount = isNumberValue(value) && !tokenId ? calcTokenAmount(value as number | string, tokenDecimals) : null;
const isValidTokenAmount = tokenAmount !== null && tokenAmount !== undefined && tokenAmount instanceof BigNumber;

const fiatValue = isValidTokenAmount && exchangeRate && !tokenId
Expand Down

0 comments on commit 31b3faa

Please sign in to comment.