fix controllerSpec tests

This commit is contained in:
Matias Alejo Garcia 2014-10-29 18:34:59 -03:00
commit b2c04b7372
8 changed files with 107 additions and 237 deletions

View file

@ -59,6 +59,7 @@ angular.module('copayApp.controllers').controller('SendController',
set: function(newValue) {
this._amount = newValue;
if (typeof(newValue) === 'number' && $scope.isRateAvailable) {
this._alternative = parseFloat(
(rateService.toFiat(newValue * w.settings.unitToSatoshi, w.settings.alternativeIsoCode)).toFixed(2), 10);
} else {