Skip to content

Commit

Permalink
fix(mon-pix): add check in register form
Browse files Browse the repository at this point in the history
when errors is not thrown from the API

Co-authored-by: Emmanuelle Bonnemay <[email protected]>
  • Loading branch information
er-lim and EmmanuelleBonnemay committed Nov 14, 2024
1 parent 3ac7603 commit 8acb6c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mon-pix/app/components/routes/register-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export default class RegisterForm extends Component {
(errorResponse) => {
this.scoOrganizationLearner.unloadRecord();
this.isLoading = false;
errorResponse.errors.forEach((error) => {
errorResponse.errors?.forEach((error) => {
if (error.status === '404') {
return (this.errorMessage =
'Vous êtes un élève ? <br> Vérifiez vos informations (prénom, nom et date de naissance) ou contactez un enseignant. <br><br> Vous êtes un enseignant ? <br> L’accès à un parcours n’est pas disponible pour le moment.');
Expand Down

0 comments on commit 8acb6c3

Please sign in to comment.