Skip to content

Commit

Permalink
Takes into account empty arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
alemangui committed Mar 28, 2024
1 parent 85fb8f4 commit 34b0fac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/views/LoginPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const submit = async () => {
// Give the ability to ask for a new e-email, only if the user is not verified yet.
// ⛔️ TODO: change this dirty hack: we use error message until having appropriate error codes in responses
if ($externalResults.value?.nonFieldErrors[0].includes("vérifié")) {
if ($externalResults.value?.nonFieldErrors?.[0]?.includes("vérifié")) {
showSendNewConfirmationMail.value = true
userIdForNewConfirmationMail.value = $externalResults.value.extra.userId
}
Expand Down

0 comments on commit 34b0fac

Please sign in to comment.