[bugfix] Coupon: show undefined without unitDesc @rex-zsd (#2991)
This commit is contained in:
@@ -39,7 +39,7 @@ export default sfc({
|
||||
faceAmount() {
|
||||
const { coupon } = this;
|
||||
if (coupon.valueDesc) {
|
||||
return `${coupon.valueDesc}<span>${coupon.unitDesc}</span>`;
|
||||
return `${coupon.valueDesc}<span>${coupon.unitDesc || ''}</span>`;
|
||||
}
|
||||
return coupon.denominations
|
||||
? `<span>${this.currency}</span> ${formatAmount(this.coupon.denominations)}`
|
||||
|
||||
Reference in New Issue
Block a user