...
|
...
|
@@ -386,7 +386,7 @@ const getCoupons = (uid) => api.get('', { |
|
|
let unuse = [];
|
|
|
let use = [];
|
|
|
|
|
|
_.forEach(result.data.unusable_coupons, i => {
|
|
|
_.get(result, 'data.unusable_coupons', []).forEach(i => {
|
|
|
unuse.push({
|
|
|
code: i.coupon_code,
|
|
|
name: i.coupon_name,
|
...
|
...
|
@@ -394,7 +394,8 @@ const getCoupons = (uid) => api.get('', { |
|
|
canuse: false
|
|
|
});
|
|
|
});
|
|
|
_.forEach(result.data.usable_coupons, i => {
|
|
|
|
|
|
_.get(result, 'data.usable_coupons', []).forEach(i => {
|
|
|
use.push({
|
|
|
code: i.coupon_code,
|
|
|
name: i.coupon_name,
|
...
|
...
|
|