1
0
Fork 0
mirror of synced 2024-07-03 05:20:32 +12:00

Fix JSON content missing from handled API errors

This commit is contained in:
Andrew Kingston 2022-01-25 08:25:16 +00:00
parent b0c03d8508
commit 673deddc8c

View file

@ -45,7 +45,7 @@ export const createAPIClient = config => {
let message = response.statusText
let json = null
try {
const json = await response.json()
json = await response.json()
if (json?.message) {
message = json.message
} else if (json?.error) {