fix
This commit is contained in:
parent
e3cac42cc7
commit
500b4bd374
@ -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 New Issue
Block a user