Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
This has to work right?
  • Loading branch information
regalijan committed Mar 2, 2024
1 parent 5e32c5f commit 4ad1e67
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/routes/events-team.tsx
Expand Up @@ -124,10 +124,8 @@ export default function () {
const newEventData = eventData;
const eventIdx = eventData.findIndex((e) => e.id === eventId);

newEventData[eventIdx] = Object.assign(eventData[eventIdx], {
approved,
pending: false,
});
newEventData[eventIdx].approved = approved;
newEventData[eventIdx].pending = false;

setEventData(newEventData);
}
Expand Down

0 comments on commit 4ad1e67

Please sign in to comment.