forked from AkkomaGang/akkoma-fe
fix
This commit is contained in:
parent
e3cac42cc7
commit
500b4bd374
1 changed files with 1 additions and 4 deletions
|
@ -47,10 +47,7 @@ function deleteSubscriptionFromBackEnd (token) {
|
||||||
}
|
}
|
||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
if (!response.ok) throw new Error('Bad status code from server.')
|
if (!response.ok) throw new Error('Bad status code from server.')
|
||||||
return response.json()
|
return response
|
||||||
}).then((responseData) => {
|
|
||||||
if (!responseData.id) throw new Error('Bad response from server.')
|
|
||||||
return responseData
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue