mirror of
https://github.com/standardnotes/mobile.git
synced 2026-02-05 21:41:23 -05:00
fix: use error message for registration
This commit is contained in:
@@ -98,7 +98,7 @@ export const AuthSection = (props: Props) => {
|
||||
|
||||
if (result?.error) {
|
||||
if (result?.error.message) {
|
||||
application?.alertService?.alert(result?.error.message, 'Oops', 'OK');
|
||||
application?.alertService?.alert(result?.error.message);
|
||||
}
|
||||
setSigningIn(false);
|
||||
return;
|
||||
@@ -133,11 +133,7 @@ export const AuthSection = (props: Props) => {
|
||||
true
|
||||
);
|
||||
if (result?.error) {
|
||||
application?.alertService?.alert(
|
||||
'Registration failed. Please try again.',
|
||||
'Registration failed',
|
||||
'OK'
|
||||
);
|
||||
application?.alertService?.alert(result.error.message);
|
||||
}
|
||||
}
|
||||
setRegistering(false);
|
||||
|
||||
Reference in New Issue
Block a user