Skip to content

Commit 182b2f8

Browse files
committed
fix: correct isHost check in competition status function
1 parent 216dae5 commit 182b2f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/routes/(app)/compete/[roomId]/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@
636636
637637
// Function to check competition status from the database
638638
async function checkCompetitionStatus() {
639-
if (!browser || isHost || isCompetitionActive) return;
639+
if (!browser || isHost() || isCompetitionActive) return;
640640
641641
// Don't check too frequently (max once per second)
642642
const now = Date.now();

0 commit comments

Comments
 (0)