Skip to content

Commit

Permalink
fix: typing issues in volunteer service
Browse files Browse the repository at this point in the history
  • Loading branch information
luciatugui committed Jul 17, 2024
1 parent 558e5d6 commit b371e23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export interface IOrganizationListItemWithNumberOfVolunteers extends IOrganizati

export interface IOrganizationVolunteer extends IOrganizationListItem {
volunteerId: string;
volunteerProfileId: string;
volunteerProfileId: string | null;
}
2 changes: 2 additions & 0 deletions mobile/src/services/volunteer/volunteer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
],
});
Expand Down

0 comments on commit b371e23

Please sign in to comment.