diff --git a/app/routes/events-team.tsx b/app/routes/events-team.tsx index 6453ce9..e081065 100644 --- a/app/routes/events-team.tsx +++ b/app/routes/events-team.tsx @@ -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) { @@ -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) {