another fix for human choices

This commit is contained in:
Dorian
2026-03-11 00:13:31 +00:00
parent 112bcde515
commit bbe656929c
7 changed files with 42 additions and 22 deletions
@@ -42,6 +42,7 @@ export function useFightPolling(fightId: Ref<string>) {
async function loadFight(): Promise<string | null> {
try {
const res = await fetch(`/api/fights/${fightId.value}`)
if (res.status === 429) return null // Rate limited, skip this poll
if (res.ok) {
const data = await res.json()
liveRounds.value = data.rounds?.length || 0