Skip to content

Commit

Permalink
Update auth_controller.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
ledhcg committed Jun 16, 2023
1 parent fdb4658 commit fe54814
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ class AuthController extends GetxController {
_isLoading.value = true;
await authProvider.login(_email.value, _password.value);

_isLoading.value = false;
if (authProvider.isAuthenticated) {
setupServiceAndProvider();
Get.offAllNamed(Routes.HOME);
_isLoading.value = false;
SnackbarWidget.showSnackbarSuccess(authProvider.responseMessage.tr);
} else {
SnackbarWidget.showSnackbar(authProvider.responseMessage);
Expand Down

0 comments on commit fe54814

Please sign in to comment.