fix(CouponCell): discounted value (#7196)

* fix(CouponCell): discounted value

* feat(CouponCell): add unit test

* feat(CouponCell): add unit test
This commit is contained in:
Lindy
2020-09-18 11:29:34 +08:00
committed by GitHub
parent d541724bfc
commit e026a5614d
3 changed files with 26 additions and 3 deletions
+1 -3
View File
@@ -30,9 +30,7 @@ function formatValue(props: CouponCellProps) {
if (isDef(coupon.value)) {
({ value } = coupon);
}
if (isDef(coupon.denominations)) {
} else if (isDef(coupon.denominations)) {
value = coupon.denominations;
}