Skip to content

Commit

Permalink
fix bad code (#3972)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbishel authored Oct 7, 2022
1 parent f5a068e commit b9d0fd7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ const MarkdownEditorInput = (props: Props): ReactElement => {
userId,
roles: role,
schemeAdmin: newRole === MemberRole.Admin,
schemeEditor: newRole === MemberRole.Admin || MemberRole.Editor,
schemeCommenter: newRole === MemberRole.Admin || MemberRole.Editor || newRole === MemberRole.Commenter,
schemeViewer: newRole === MemberRole.Admin || MemberRole.Editor || newRole === MemberRole.Commenter || newRole === MemberRole.Viewer,
schemeEditor: newRole === MemberRole.Admin || newRole === MemberRole.Editor,
schemeCommenter: newRole === MemberRole.Admin || newRole === MemberRole.Editor || newRole === MemberRole.Commenter,
schemeViewer: newRole === MemberRole.Admin || newRole === MemberRole.Editor || newRole === MemberRole.Commenter || newRole === MemberRole.Viewer,
} as BoardMember

setConfirmAddUser(null)
Expand Down
6 changes: 3 additions & 3 deletions webapp/src/properties/multiperson/multiperson.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ const MultiPerson = (props: PropertyProps): JSX.Element => {
userId,
roles: role,
schemeAdmin: newRole === MemberRole.Admin,
schemeEditor: newRole === MemberRole.Admin || MemberRole.Editor,
schemeCommenter: newRole === MemberRole.Admin || MemberRole.Editor || newRole === MemberRole.Commenter,
schemeViewer: newRole === MemberRole.Admin || MemberRole.Editor || newRole === MemberRole.Commenter || newRole === MemberRole.Viewer,
schemeEditor: newRole === MemberRole.Admin || newRole === MemberRole.Editor,
schemeCommenter: newRole === MemberRole.Admin || newRole === MemberRole.Editor || newRole === MemberRole.Commenter,
schemeViewer: newRole === MemberRole.Admin || newRole === MemberRole.Editor || newRole === MemberRole.Commenter || newRole === MemberRole.Viewer,
} as BoardMember

setConfirmAddUser(null)
Expand Down
6 changes: 3 additions & 3 deletions webapp/src/properties/person/person.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ const Person = (props: PropertyProps): JSX.Element => {
userId,
roles: role,
schemeAdmin: newRole === MemberRole.Admin,
schemeEditor: newRole === MemberRole.Admin || MemberRole.Editor,
schemeCommenter: newRole === MemberRole.Admin || MemberRole.Editor || newRole === MemberRole.Commenter,
schemeViewer: newRole === MemberRole.Admin || MemberRole.Editor || newRole === MemberRole.Commenter || newRole === MemberRole.Viewer,
schemeEditor: newRole === MemberRole.Admin || newRole === MemberRole.Editor,
schemeCommenter: newRole === MemberRole.Admin || newRole === MemberRole.Editor || newRole === MemberRole.Commenter,
schemeViewer: newRole === MemberRole.Admin || newRole === MemberRole.Editor || newRole === MemberRole.Commenter || newRole === MemberRole.Viewer,
} as BoardMember

setConfirmAddUser(null)
Expand Down

0 comments on commit b9d0fd7

Please sign in to comment.