diff options
| author | Lucas Faria Mendes <lucas.fariamo08@gmail.com> | 2026-08-16 23:17:42 +0000 |
|---|---|---|
| committer | Lucas Faria Mendes <lucas.fariamo08@gmail.com> | 2026-08-16 23:17:42 +0000 |
| commit | 375482e654a01615683867e732ac9e458c7cbe74 (patch) | |
| tree | 12d1b31b8deb6bf8590bcdbc2cfb52dcc553e006 /src/app | |
| parent | 2c2dfba45357bbd205a59145ae55a2779c911ae0 (diff) | |
| download | yaba-master.tar.gz yaba-master.zip | |
Signed-off-by: Lucas Faria Mendes <lucas.fariamo08@gmail.com>
Diffstat (limited to 'src/app')
| -rw-r--r-- | src/app/login.tsx | 4 | ||||
| -rw-r--r-- | src/app/register.tsx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/app/login.tsx b/src/app/login.tsx index 15ec3be..16b6777 100644 --- a/src/app/login.tsx +++ b/src/app/login.tsx @@ -43,8 +43,8 @@ export default function LoginScreen() { } else { router.replace("/"); } - } catch (error) { - Alert.alert("Erro", "Falha ao fazer login. Verifique suas credenciais e tente novamente."); + } catch (error: any) { + Alert.alert("Erro", error.message || "Falha ao fazer login. Verifique suas credenciais e tente novamente."); } finally { setIsLoading(false); } diff --git a/src/app/register.tsx b/src/app/register.tsx index aac588d..108761f 100644 --- a/src/app/register.tsx +++ b/src/app/register.tsx @@ -38,7 +38,7 @@ export default function RegisterScreen() { router.replace('/'); } } catch (err: any) { - Alert.alert('Erro no cadastro', 'Verifique seus dados.'); + Alert.alert('Erro no cadastro', err.message || 'Verifique seus dados.'); setIsLoading(false); } } |