@@ -23,7 +23,7 @@ export default class AssociateScoStudentWithMediacentreForm extends Component {
23
23
constructor ( ) {
24
24
super ( ...arguments ) ;
25
25
26
- const tokenIdForExternalUser = this . session . data . externalUser ;
26
+ const tokenIdForExternalUser = this . session . externalUserTokenFromGar ;
27
27
if ( tokenIdForExternalUser ) {
28
28
const userFirstNameAndLastName = decodeToken ( tokenIdForExternalUser ) ;
29
29
this . firstName = userFirstNameAndLastName [ 'first_name' ] ;
@@ -53,7 +53,7 @@ export default class AssociateScoStudentWithMediacentreForm extends Component {
53
53
}
54
54
55
55
_createExternalUserRecord ( ) {
56
- const externalUserToken = this . session . get ( 'data.externalUser' ) ;
56
+ const externalUserToken = this . session . externalUserTokenFromGar ;
57
57
return this . store . createRecord ( 'external-user' , {
58
58
birthdate : this . attributes . birthdate ,
59
59
campaignCode : this . args . campaignCode ,
@@ -70,7 +70,7 @@ export default class AssociateScoStudentWithMediacentreForm extends Component {
70
70
} else {
71
71
this . reconciliationError = error ;
72
72
this . displayInformationModal = true ;
73
- this . session . set ( 'data.expectedUserId' , error . meta . userId ) ;
73
+ this . session . expectedUserIdFromGar = error . meta . userId ;
74
74
}
75
75
} else if ( error . status === '404' ) {
76
76
this . errorMessage = this . intl . t ( 'pages.join.sco.error-not-found' , { htmlSafe : true } ) ;
0 commit comments