settings: fix references to unitToSatoshi

This commit is contained in:
Manuel Araoz 2014-09-04 11:12:08 -03:00
commit 7c582f4bd5
3 changed files with 8 additions and 5 deletions

View file

@ -4,6 +4,8 @@ var bitcore = require('bitcore');
angular.module('copayApp.controllers').controller('TransactionsController',
function($scope, $rootScope, $timeout, controllerUtils, notification) {
var w = $rootScope.wallet;
$scope.title = 'Transactions';
$scope.loading = false;
$scope.lastShowed = false;
@ -12,7 +14,7 @@ angular.module('copayApp.controllers').controller('TransactionsController',
$scope.txpItemsPerPage = 4;
$scope.blockchain_txs = [];
var satToUnit = 1 / config.unitToSatoshi;
var satToUnit = 1 / w.settings.unitToSatoshi;
$scope.update = function() {
$scope.loading = true;