From b73d51f194cbd0ffca52861975c1e559174f5795 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Fri, 3 Feb 2017 20:58:03 -0300 Subject: [PATCH] Clean variables --- src/js/services/pushNotificationsService.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/js/services/pushNotificationsService.js b/src/js/services/pushNotificationsService.js index 63090faae..a5e99a3a7 100644 --- a/src/js/services/pushNotificationsService.js +++ b/src/js/services/pushNotificationsService.js @@ -98,10 +98,9 @@ angular.module('copayApp.services').factory('pushNotificationsService', function FCMPlugin.onNotification(function(data) { if (!_token) return; $log.debug('New Event Push onNotification: ' + JSON.stringify(data)); - var walletId, copayerId; if(data.wasTapped) { // Notification was received on device tray and tapped by the user. - var walletId = data ? data.walletId : null; + var walletId = data.walletId; if (!walletId) return; $ionicHistory.nextViewOptions({ disableAnimate: true,