From 657e6645156fce61b1403085ffe718f1db2a9548 Mon Sep 17 00:00:00 2001 From: Radek Czemerys Date: Tue, 1 Dec 2020 15:37:31 +0100 Subject: [PATCH] fix: use error message for registration --- src/screens/Settings/Sections/AuthSection.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/screens/Settings/Sections/AuthSection.tsx b/src/screens/Settings/Sections/AuthSection.tsx index 9212e2bc..e5ebcbe4 100644 --- a/src/screens/Settings/Sections/AuthSection.tsx +++ b/src/screens/Settings/Sections/AuthSection.tsx @@ -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);