aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorLucas Faria Mendes <lucas.fariamo08@gmail.com>2026-08-16 23:17:42 +0000
committerLucas Faria Mendes <lucas.fariamo08@gmail.com>2026-08-16 23:17:42 +0000
commit375482e654a01615683867e732ac9e458c7cbe74 (patch)
tree12d1b31b8deb6bf8590bcdbc2cfb52dcc553e006 /src/app
parent2c2dfba45357bbd205a59145ae55a2779c911ae0 (diff)
downloadyaba-375482e654a01615683867e732ac9e458c7cbe74.tar.gz
yaba-375482e654a01615683867e732ac9e458c7cbe74.zip
feat: upload yaba srcHEADmaster
Signed-off-by: Lucas Faria Mendes <lucas.fariamo08@gmail.com>
Diffstat (limited to 'src/app')
-rw-r--r--src/app/login.tsx4
-rw-r--r--src/app/register.tsx2
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);
}
}