[bugfix] CouponList: incorrectly render when disabled list empty (#2845)

This commit is contained in:
neverland
2019-02-26 11:57:23 +08:00
committed by GitHub
parent 8f3dc3f9ca
commit 2dcd64c515
3 changed files with 50 additions and 1 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ export default sfc({
{this.disabledCoupons.map(coupon => (
<Coupon disabled key={coupon.id} coupon={coupon} currency={this.currency} />
))}
{!this.disabledCoupons.length && this.renderEmpty}
{!this.disabledCoupons.length && this.renderEmpty()}
</div>
</Tab>
);