diff --git a/src/js/directives/formattedAmount.js b/src/js/directives/formattedAmount.js index 3c787521a..e223a8fd5 100644 --- a/src/js/directives/formattedAmount.js +++ b/src/js/directives/formattedAmount.js @@ -62,6 +62,11 @@ angular.module('bitcoincom.directives') }; var formatNumbers = function(currency, value) { + if (isNaN(parseFloat($scope.value))) { + buildAmount('', '', ''); + return; + } + switch (getDecimalPlaces(currency)) { case '0': var valueFormatted = localizeNumbers(Math.round(parseFloat(value)));