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();