Merge branch 'feature/shopCoupon' into release/6.0.2
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -142,7 +142,7 @@ function syncCouponStatus() { | @@ -142,7 +142,7 @@ function syncCouponStatus() { | ||
142 | if (couponObj.hasOwnProperty(i)) { | 142 | if (couponObj.hasOwnProperty(i)) { |
143 | coup = asyncObj[i]; | 143 | coup = asyncObj[i]; |
144 | 144 | ||
145 | - if (coup) { | 145 | + if (coup && (coup.status === 1 || coup.status === 3)) { |
146 | couponObj[i].status = coup.status; | 146 | couponObj[i].status = coup.status; |
147 | coup.status === 3 ? setPicked(couponObj[i]) : false; | 147 | coup.status === 3 ? setPicked(couponObj[i]) : false; |
148 | } else { | 148 | } else { |
-
Please register or login to post a comment