Skip to content

Commit

Permalink
fix(Redeem): show premium redeem compensation (#1591)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsimao authored Oct 24, 2023
1 parent 6701577 commit aeca5b3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,7 @@ const RedeemForm = ({
? convertMonetaryAmountToValueInUSD(totalAmount, getTokenPrice(prices, totalAmount.currency.ticker)?.usd) || 0
: 0;

const compensationAmount =
monetaryAmount.isZero() && isPremiumRedeem ? getCompensationAmount(monetaryAmount) : undefined;
const compensationAmount = isPremiumRedeem ? getCompensationAmount(monetaryAmount) : undefined;
const compensationAmountUSD = compensationAmount
? convertMonetaryAmountToValueInUSD(
compensationAmount,
Expand Down

2 comments on commit aeca5b3

@vercel
Copy link

@vercel vercel bot commented on aeca5b3 Oct 24, 2023

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on aeca5b3 Oct 24, 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.