issue
This commit is contained in:
@@ -253,8 +253,10 @@ class AddtocartProvider extends ChangeNotifier {
|
||||
notifyListeners();
|
||||
|
||||
var data = {"couponCode": couponscode, "cartId": cartId};
|
||||
print("ijdfhjhgjfgihj $data");
|
||||
try {
|
||||
var result = await _homeRepo.applyCoupon(data);
|
||||
|
||||
|
||||
return result.fold(
|
||||
(error) {
|
||||
@@ -271,7 +273,8 @@ class AddtocartProvider extends ChangeNotifier {
|
||||
notifyListeners();
|
||||
return false;
|
||||
},
|
||||
(response) {
|
||||
(response)
|
||||
{
|
||||
if (response != null) {
|
||||
couponResponse = response;
|
||||
_couponId = id;
|
||||
|
||||
Reference in New Issue
Block a user