front dev update
This commit is contained in:
@@ -5,6 +5,7 @@ import 'package:pshared/provider/organizations.dart';
|
||||
import 'package:pshared/provider/payment/quotation/quotation.dart';
|
||||
import 'package:pshared/provider/resource.dart';
|
||||
import 'package:pshared/service/payment/service.dart';
|
||||
import 'package:pshared/utils/exception.dart';
|
||||
|
||||
|
||||
class PaymentProvider extends ChangeNotifier {
|
||||
@@ -53,11 +54,7 @@ class PaymentProvider extends ChangeNotifier {
|
||||
_isLoaded = true;
|
||||
_setResource(_payment.copyWith(data: response, isLoading: false, error: null));
|
||||
} catch (e) {
|
||||
_setResource(_payment.copyWith(
|
||||
data: null,
|
||||
error: e is Exception ? e : Exception(e.toString()),
|
||||
isLoading: false,
|
||||
));
|
||||
_setResource(_payment.copyWith(data: null, error: toException(e), isLoading: false));
|
||||
}
|
||||
return _payment.data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user