From 500b4bd37412960c7b2278b930794b2ccf00c971 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 25 Dec 2018 14:28:49 +0300 Subject: [PATCH] fix --- src/services/push/push.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/services/push/push.js b/src/services/push/push.js index 9142895f..bf0c9680 100644 --- a/src/services/push/push.js +++ b/src/services/push/push.js @@ -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 }) }