Skip to content

Commit

Permalink
fix: fix missing usd value in estimated output
Browse files Browse the repository at this point in the history
  • Loading branch information
RyukTheCoder authored and mikasackermn committed Jul 27, 2024
1 parent 40229dc commit a46d19a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions widget/embedded/src/components/SwapDetails/SwapDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,7 @@ export function SwapDetails(props: SwapDetailsProps) {
)?.diagnosisUrl;

const outputUsdValue = numberToString(
parseFloat(
numberToString(
outputAmount,
TOKEN_AMOUNT_MIN_DECIMALS,
TOKEN_AMOUNT_MAX_DECIMALS
)
) * (lastStep.toUsdPrice || 0),
parseFloat(outputAmount || '0') * (lastStep.toUsdPrice || 0),
USD_VALUE_MIN_DECIMALS,
USD_VALUE_MAX_DECIMALS
);
Expand Down

0 comments on commit a46d19a

Please sign in to comment.