Skip to content

Commit

Permalink
Merge pull request #314 from code4romania/fix/volunteer-type
Browse files Browse the repository at this point in the history
fix: typing issues in volunteer service
  • Loading branch information
birloiflorian authored Jul 19, 2024
2 parents 64a8a24 + b371e23 commit 0cc9db5
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 0cc9db5

Please sign in to comment.