Skip to content

Commit 559b9be

Browse files
authored
Update getApiData.ts
1 parent 49171bf commit 559b9be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

store/getApiData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ export async function getOrFetchApiData(matchId: number, noRetry = false): Promi
5050
// We currently disable refetching because the Steam GetMatchDetails API is broken
5151
return { data: saved, error: null, pgroup: getPGroup(saved) };
5252
}
53-
throw new Error('[APIDATA]: Could not get API data for match ' + matchId);
53+
return { data: null, error: '[APIDATA]: Could not get API data for match ' + matchId, pgroup: null };
5454
}

0 commit comments

Comments
 (0)