fix general coupon

This commit is contained in:
2020-09-30 21:42:28 +03:00
parent c6e2eb41d4
commit 54c9c363d1
2 changed files with 9 additions and 6 deletions

Binary file not shown.

View File

@@ -251,13 +251,15 @@ public class PaymentMethodFragment extends CreateOrderBaseFragment {
getCartProducts();
}
else {
DialogHelper.hideLoadingDialog();
ApiErrorUtils.parseError(response);
checkGeneralCoupon();
//DialogHelper.hideLoadingDialog();
//ApiErrorUtils.parseError(response);
}
}
else {
DialogHelper.hideLoadingDialog();
ApiErrorUtils.parseError(response);
checkGeneralCoupon();
//DialogHelper.hideLoadingDialog();
//ApiErrorUtils.parseError(response);
}
}
else {
@@ -269,8 +271,9 @@ public class PaymentMethodFragment extends CreateOrderBaseFragment {
@Override
public void onFailure(Call<ResponseObject<PersonalCouponModel>> call, Throwable t) {
DialogHelper.hideLoadingDialog();
DialogHelper.showFailedDialog();
checkGeneralCoupon();
//DialogHelper.hideLoadingDialog();
//DialogHelper.showFailedDialog();
}
});
}