diff --git a/mobile/src/common/interfaces/organization-list-item.interface.ts b/mobile/src/common/interfaces/organization-list-item.interface.ts index a51456d18..d7ad2263a 100644 --- a/mobile/src/common/interfaces/organization-list-item.interface.ts +++ b/mobile/src/common/interfaces/organization-list-item.interface.ts @@ -10,5 +10,5 @@ export interface IOrganizationListItemWithNumberOfVolunteers extends IOrganizati export interface IOrganizationVolunteer extends IOrganizationListItem { volunteerId: string; - volunteerProfileId: string; + volunteerProfileId: string | null; } diff --git a/mobile/src/services/volunteer/volunteer.service.ts b/mobile/src/services/volunteer/volunteer.service.ts index 6c47ae6dc..23dba7d98 100644 --- a/mobile/src/services/volunteer/volunteer.service.ts +++ b/mobile/src/services/volunteer/volunteer.service.ts @@ -47,12 +47,14 @@ export const useJoinByAccessCodeMutation = () => { activeOrganization: { ...data.organization, volunteerId: data.id, + volunteerProfileId: null, }, myOrganizations: [ ...userProfile.myOrganizations, { ...data.organization, volunteerId: data.id, + volunteerProfileId: null, }, ], });