From b1bba55a7b539964e5d6c735a1dfd48b3c85c2ec Mon Sep 17 00:00:00 2001 From: Branden J Brown Date: Sat, 3 Feb 2024 23:03:54 -0600 Subject: [PATCH] watch round timer immediately --- site/src/components/Game.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/site/src/components/Game.vue b/site/src/components/Game.vue index bdacbbf..b2c1434 100644 --- a/site/src/components/Game.vue +++ b/site/src/components/Game.vue @@ -88,8 +88,7 @@ const timestamp = useTimestamp({ }); watch(() => props.game.deadline, (now) => { initTimeLeft.value = now - timestamp.value; - console.log(initTimeLeft, now, timestamp.value); -}); +}, {immediate: true}); const moveColor = computed(() => timeLeft.value > 3000 ? 'primary' : 'red'); function attack(left: boolean) {