Skip to content

Commit

Permalink
fix: submissions appear on the admin dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
azaleacolburn committed Dec 7, 2024
1 parent 2a32800 commit 760bc48
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/routes/admin/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@
onclick={() => remove_submission(team_match)}
class="rounded border p-2 text-center"
>
{team_match}
<div class="grid grid-cols-4 grid-rows-4">
{team_match.match_key}:{team_match.team_key}
</div>
</button>
{/each}
</div>
Expand Down
1 change: 1 addition & 0 deletions src/routes/scout/[team_data]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import { ArrowRight, ArrowLeft } from 'lucide-svelte';
import { browser } from '$app/environment';
import Postmatch from './Postmatch.svelte';
import { io } from 'socket.io-client';
const { data }: { data: PageData } = $props();
Expand Down
2 changes: 1 addition & 1 deletion ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const webSocketServer = {
if (!socket.rooms.has('admin_room')) return;

info(
`TeamMatch: ${team_match.match_key}$_{team_match.team_key} was removed by the admin`
`TeamMatch: ${team_match.match_key}_${team_match.team_key} was removed by the admin`
);
// TODO: Emit message from the db to remove team_match
});
Expand Down

0 comments on commit 760bc48

Please sign in to comment.