Skip to content

Commit

Permalink
Minor Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavberi committed Mar 12, 2024
1 parent b506d55 commit 0df6247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/manage/events/[id]/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function getActions(event, user) {
* else - nothing
*/
if (event?.status?.state === "deleted") {
if (user?.role in ["club", "cc"]) return [CopyEvent];
if (["club", "cc"].includes(user?.role)) return [CopyEvent];
else return [];
}

Expand Down

0 comments on commit 0df6247

Please sign in to comment.