Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Attempt inline updates on event cards
  • Loading branch information
regalijan committed Feb 26, 2024
1 parent 9762631 commit 97bba83
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/routes/events-team.tsx
Expand Up @@ -106,6 +106,10 @@ export default function () {
status: "success",
title: "Success",
});

events.find((e, i) => {
if (e.id === eventId) events[i].approved = approved;
});
}

async function certify(eventId: string) {
Expand Down Expand Up @@ -140,6 +144,10 @@ export default function () {
description: "Game night certified",
title: "Success",
});

events.find((e, i) => {
if (e.id === eventId) events[i].reached_minimum_player_count = true;
});
}

for (const event of events) {
Expand Down

0 comments on commit 97bba83

Please sign in to comment.