set 24 hours timer

This commit is contained in:
Gabriel Bazán 2016-11-08 12:37:05 -03:00
commit ac9cee8d6d
5 changed files with 22 additions and 7 deletions

View file

@ -37,8 +37,11 @@ angular.module('copayApp.controllers').controller('tabHomeController',
});
}
storageService.getRateCardFlag(function(error, value) {
$scope.hideRateCard.value = (value == 'true') ? true : false;
storageService.getProfileCreationTime(function(error, time) {
var now = moment().unix() * 1000;
storageService.getRateCardFlag(function(error, value) {
$scope.hideRateCard.value = (value == 'true' || (time - now) > 0) ? true : false;
});
});
});