Skip to content

Commit

Permalink
fix: Added separate field for user in membership
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui committed Nov 17, 2023
1 parent 026474b commit a86d83e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/collaboration/membershipsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* along with this program. If not, see https://www.gnu.org/licenses/.
*/
import _ from 'lodash/fp';
import { User } from 'terraso-client-shared/account/accountSlice';
import type {
AccountCollaborationMembershipFragment,
CollaborationMembershipFieldsFragment,
Expand Down Expand Up @@ -45,9 +46,9 @@ export type MembershipList = {
export type Membership = {
membershipId: string;
membershipStatus: 'APPROVED' | 'PENDING';
user: User;
};


export const extractMembershipsInfo = (
membershipList?: MembershipQuery | null,
) => ({
Expand Down

0 comments on commit a86d83e

Please sign in to comment.