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 committed Oct 24, 2023
1 parent a1259f5 commit 674b516
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

0 comments on commit 674b516

Please sign in to comment.