🐛 Fixes ignored wrong exception in sign in with apple

This commit is contained in:
LittleSheep 2025-06-16 01:30:19 +08:00
parent 00b3dc7be6
commit 4b9c9aec92
2 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ class AccountConnectionNewSheet extends HookConsumerWidget {
Navigator.pop(context, true);
}
} catch (err) {
if (err is SignInWithAppleCredentialsException) return;
if (err is SignInWithAppleAuthorizationException) return;
showErrorAlert(err);
} finally {
if (context.mounted) hideLoadingModal(context);

View File

@ -597,7 +597,7 @@ class _LoginLookupScreen extends HookConsumerWidget {
if (context.mounted) Navigator.pop(context, true);
});
} catch (err) {
if (err is SignInWithAppleCredentialsException) return;
if (err is SignInWithAppleAuthorizationException) return;
showErrorAlert(err);
} finally {
if (context.mounted) hideLoadingModal(context);