From fb112a86dfb89b07ca617c3d43c286be63675520 Mon Sep 17 00:00:00 2001 From: Benjamin Petetot Date: Mon, 9 Dec 2024 18:11:19 +0100 Subject: [PATCH] refactor(mon-pix): use session helper in sco student association --- .../routes/campaigns/invited/associate-sco-student-form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mon-pix/app/components/routes/campaigns/invited/associate-sco-student-form.js b/mon-pix/app/components/routes/campaigns/invited/associate-sco-student-form.js index 219084bcc8a..f582ec060d8 100644 --- a/mon-pix/app/components/routes/campaigns/invited/associate-sco-student-form.js +++ b/mon-pix/app/components/routes/campaigns/invited/associate-sco-student-form.js @@ -76,7 +76,7 @@ export default class AssociateScoStudentForm extends Component { } else { this.reconciliationError = error; this.displayInformationModal = true; - this.session.set('data.expectedUserId', error.meta.userId); + this.session.expectedUserIdFromGar = error.meta.userId; } } else if (error.status === '422' && error.code === 'ACCOUNT_SEEMS_TO_BELONGS_TO_ANOTHER_USER') { this.reconciliationError = error;