Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Will it work now?
  • Loading branch information
regalijan committed Mar 2, 2024
1 parent 01340d0 commit 5e32c5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/routes/events-team.tsx
Expand Up @@ -122,8 +122,9 @@ export default function () {
});

const newEventData = eventData;
const eventIdx = eventData.findIndex((e) => e.id === eventId);

Object.assign(newEventData[eventData.findIndex((e) => e.id === eventId)], {
newEventData[eventIdx] = Object.assign(eventData[eventIdx], {
approved,
pending: false,
});
Expand Down

0 comments on commit 5e32c5f

Please sign in to comment.