fix: 복구 2배속 베팅 마감을 게임 시각으로 판정

This commit is contained in:
2026-09-16 01:05:40 +00:00
parent 47ee6491da
commit a51574d20c
3 changed files with 70 additions and 3 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
import { usePageExit } from '../composables/usePageExit';
import { useClockDisplay } from '../composables/useClockDisplay';
const { formatTime: formatGameTime } = useClockDisplay();
const { formatTime: formatGameTime, gameTime } = useClockDisplay();
import { storeToRefs } from 'pinia';
import { computed, onMounted, onUnmounted, ref } from 'vue';
import TournamentBracket from '../components/tournament/TournamentBracket.vue';
@@ -62,7 +62,7 @@ const bettingOpen = computed(() => {
const state = snapshot.value?.state;
if (!state || state.stage !== 6) return false;
if (!state.bettingCloseAt) return true;
return new Date(state.bettingCloseAt).getTime() > Date.now();
return gameTime.value !== null && new Date(state.bettingCloseAt).getTime() > gameTime.value.getTime();
});
const placeBet = async (target: TournamentBracketSlot) => {