another fix for human choices
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user