feat(CouponCell): prefer to use value over denominations & modify tips (#5438)

This commit is contained in:
rex
2020-01-02 16:10:37 +08:00
committed by neverland
parent 74c63ad2f0
commit 67d0811596
8 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ function formatValue(props: CouponCellProps) {
const coupon = coupons[chosenCoupon];
if (coupon) {
const value = coupon.denominations || coupon.value;
const value = coupon.value || coupon.denominations || 0;
return `-${currency}${(value / 100).toFixed(2)}`;
}