Clean variables

This commit is contained in:
Gustavo Maximiliano Cortez 2017-02-03 20:58:03 -03:00
parent 4e8bd0634c
commit b73d51f194
No known key found for this signature in database
GPG Key ID: 15EDAD8D9F2EB1AF
1 changed files with 1 additions and 2 deletions

View File

@ -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,