Attempt inline updates on event cards
This commit is contained in:
parent
97626316ab
commit
97bba83eb5
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user