From b371e23997457c3df78255a87d8c2d39ed9197bd Mon Sep 17 00:00:00 2001 From: luciatugui Date: Wed, 17 Jul 2024 17:15:54 +0300 Subject: [PATCH] fix: typing issues in volunteer service --- .../src/common/interfaces/organization-list-item.interface.ts | 2 +- mobile/src/services/volunteer/volunteer.service.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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, }, ], });