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) => {
|
||||
if (!response.ok) throw new Error('Bad status code from server.')
|
||||
return response.json()
|
||||
}).then((responseData) => {
|
||||
if (!responseData.id) throw new Error('Bad response from server.')
|
||||
return responseData
|
||||
return response
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue