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