Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Only show delete button for events in the future
  • Loading branch information
regalijan committed Oct 20, 2024
1 parent 1f0cc76 commit ba49329
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/routes/events-team.tsx
Expand Up @@ -607,7 +607,9 @@ export default function () {
<Button
alignSelf="center"
display={
event.created_by === user_id || can_approve
(event.created_by === user_id &&
event.day > new Date().getUTCDate()) ||
can_approve
? undefined
: "none"
}
Expand Down

0 comments on commit ba49329

Please sign in to comment.