From cf3d5450565d95607f5e38e9ce7e26a5c3f641bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Thu, 28 Jan 2016 17:22:22 -0300 Subject: [PATCH] fix cb in subscribe and unsubcribe function --- src/js/services/pushNotificationsService.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/services/pushNotificationsService.js b/src/js/services/pushNotificationsService.js index a9141a564..001c13118 100644 --- a/src/js/services/pushNotificationsService.js +++ b/src/js/services/pushNotificationsService.js @@ -67,7 +67,7 @@ angular.module('copayApp.services') } root.subscribe = function(opts, walletClient, cb) { - if (!usePushNotifications) return; + if (!usePushNotifications) return cb(); var config = configService.getSync(); if (!config.pushNotifications.enabled) return; @@ -79,7 +79,7 @@ angular.module('copayApp.services') } root.unsubscribe = function(walletClient, cb) { - if (!usePushNotifications) return; + if (!usePushNotifications) return cb(); walletClient.pushNotificationsUnsubscribe(function(err) { if (err) return cb(err);