diff --git a/services/web/frontend/js/features/settings/context/user-email-context.tsx b/services/web/frontend/js/features/settings/context/user-email-context.tsx index 8d663a47ce..40d9c6f767 100644 --- a/services/web/frontend/js/features/settings/context/user-email-context.tsx +++ b/services/web/frontend/js/features/settings/context/user-email-context.tsx @@ -83,12 +83,18 @@ const setData = (state: State, action: ActionSetData) => { idAttribute: 'email', }) const byId = normalized || {} + const linkedInstitutionIds = action.payload + .filter(email => Boolean(email.samlProviderId)) + .map(email => email.samlProviderId) as NonNullable< + UserEmailData['samlProviderId'] + >[] return { ...state, data: { ...initialState.data, byId, + linkedInstitutionIds, }, } }