Skip to content

Commit

Permalink
Error when NOT ok
Browse files Browse the repository at this point in the history
  • Loading branch information
gausie committed Nov 22, 2024
1 parent ddc1ec4 commit 5401319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/greenbox-web/src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export const fetchPlayerData = createAsyncThunk(
);
const json = await response.json();

if (response.ok) {
if (!response.ok) {
throw new Error(json.error);
}

Expand Down

0 comments on commit 5401319

Please sign in to comment.