Skip to content

Commit

Permalink
fix(Redeem): show premium redeem compensation (#1592)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsimao authored Oct 24, 2023
1 parent 07f8dd8 commit 5f41a9c
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

1 comment on commit 5f41a9c

@vercel
Copy link

@vercel vercel bot commented on 5f41a9c 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.