Only show delete button for events in the future

This commit is contained in:
2024-10-20 03:00:19 -04:00
parent 1f0cc76d46
commit ba4932958c

View File

@ -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"
}