From 93f900919fb9fd74b4b9c7de07e018886a23b28e Mon Sep 17 00:00:00 2001 From: Kadir Sekha Date: Mon, 13 Nov 2017 15:07:42 +0900 Subject: [PATCH] fixed bug in pushNotificationsService token registration --- src/js/services/pushNotificationsService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/services/pushNotificationsService.js b/src/js/services/pushNotificationsService.js index 756bb7f98..58fa73d60 100644 --- a/src/js/services/pushNotificationsService.js +++ b/src/js/services/pushNotificationsService.js @@ -102,7 +102,7 @@ angular.module('copayApp.services').factory('pushNotificationsService', function if (usePushNotifications) { FirebasePlugin.onTokenRefresh(function(token) { - if (!_token) return; + if (!token) return; $log.debug('Refresh and update token for push notifications...'); _token = token; root.enable();