Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sneha-s committed Jun 17, 2024
1 parent fbe4332 commit b414ea2
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ class SignInWithPhoneViewNotifier extends StateNotifier<SignInWithPhoneState> {
}

Future<void> verifyPhoneNumber() async {
print("xxx --- verifyPhoneNumber --- xxx");
state = state.copyWith(verifying: true, actionError: null);
try {
_authService.verifyPhoneNumber(
Expand All @@ -81,11 +80,10 @@ class SignInWithPhoneViewNotifier extends StateNotifier<SignInWithPhoneState> {
verificationId: verificationId, verifying: false);
});
} catch (error, stack) {
throw Exception(error);
// FirebaseCrashlytics.instance.recordError(error, stack, reason: "Verify Phone-Number Error");
// state = state.copyWith(verifying: false, actionError: error);
// debugPrint(
// "SignInWithPhoneViewNotifier: error in verifyPhoneNumber -> $error");
FirebaseCrashlytics.instance.recordError(error, stack, reason: "Verify Phone-Number Error");
state = state.copyWith(verifying: false, actionError: error);
debugPrint(
"SignInWithPhoneViewNotifier: error in verifyPhoneNumber -> $error");
}
}
}
Expand Down

0 comments on commit b414ea2

Please sign in to comment.