Skip to content

Commit

Permalink
actually fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
sipec committed Jul 30, 2024
1 parent 8dcfa5c commit 4249464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/lib/supabase/group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export async function getMemberRole(user: User, groupId: string) {
.eq('group_id', groupId)
.eq('member_id', user.id)
)
return data[0]?.role ?? ('member' as GroupRole)
return (data[0]?.role ?? 'member') as GroupRole
}

export async function getGroupContractIds(groupId: string) {
Expand Down

0 comments on commit 4249464

Please sign in to comment.