Attempt inline updates on event cards

This commit is contained in:
Regalijan 2024-02-26 14:51:05 -05:00
parent 97626316ab
commit 97bba83eb5
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -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) {