Skip to content
Snippets Groups Projects
Commit 500b4bd3 authored by HJ's avatar HJ :fire:
Browse files

fix

parent e3cac42c
No related branches found
No related tags found
1 merge request!433Fixes for push notifications
Pipeline #5715 passed
......@@ -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
})
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment