Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Actually return certified status
  • Loading branch information
regalijan committed Feb 28, 2024
1 parent 1ba4dee commit 16617ec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/routes/events-team.tsx
Expand Up @@ -42,7 +42,7 @@ export async function loader({ context }: { context: RequestContext }) {

const now = new Date();
const monthEventList = await context.env.D1.prepare(
"SELECT answer, approved, created_by, day, details, id, month, pending, type, year FROM events WHERE month = ? AND year = ?;",
"SELECT answer, approved, created_by, day, details, id, month, pending, reached_minimum_player_count, type, year FROM events WHERE month = ? AND year = ?;",
)
.bind(now.getUTCMonth() + 1, now.getUTCFullYear())
.all();
Expand Down Expand Up @@ -253,7 +253,10 @@ export default function () {
<Button
colorScheme="blue"
ml="8px"
onClick={async () => await certify(selectedEvent)}
onClick={async () => {
await certify(selectedEvent);
onClose();
}}
>
Certify
</Button>
Expand Down

0 comments on commit 16617ec

Please sign in to comment.