...
|
...
|
@@ -904,7 +904,6 @@ export function getCouponSuccess(list) { |
|
|
export function getCouponFailure(error) {
|
|
|
return {
|
|
|
type: ADD_COUPON_FAILURE,
|
|
|
payload: error,
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -935,6 +934,10 @@ export function getCoupon(couponId) { |
|
|
success();
|
|
|
})
|
|
|
.catch(error => {
|
|
|
|
|
|
if (error.code == 401) {
|
|
|
success();
|
|
|
}
|
|
|
dispatch(getCouponFailure(error));
|
|
|
});
|
|
|
}
|
...
|
...
|
|