fix catch error

This commit is contained in:
J. A. Messias 2024-09-13 17:13:58 -03:00
parent 4f35d67b02
commit 3dc941ba4c
1 changed files with 2 additions and 2 deletions

View File

@ -212,7 +212,7 @@ class PetsPageModel extends FlutterFlowModel<PetsPageWidget> {
clearFields();
onUpdatePet?.call();
switchTab(1);
}).catchError((error) {
}).onError((error, stack) {
log(error.toString());
DialogUtil.errorDefault(buildContext!);
});
@ -249,7 +249,7 @@ class PetsPageModel extends FlutterFlowModel<PetsPageWidget> {
));
clearFields();
onRegisterPet?.call();
}).catchError((error) {
}).onError((error, stack) {
DialogUtil.errorDefault(buildContext!);
});
}