Fix formatted amount.
This commit is contained in:
parent
a29a41b647
commit
430f4644eb
1 changed files with 3 additions and 2 deletions
|
|
@ -90,11 +90,12 @@
|
||||||
// During watch, may be changed from having a separate currency value,
|
// During watch, may be changed from having a separate currency value,
|
||||||
// to both being in value. Don't want to use previous currency value.
|
// to both being in value. Don't want to use previous currency value.
|
||||||
// Try to extract currency from value..
|
// Try to extract currency from value..
|
||||||
|
$scope.currency = $scope.currency || '';
|
||||||
|
|
||||||
var currencySplit = $scope.value.split(" ");
|
var currencySplit = $scope.value.split(" ");
|
||||||
if (currencySplit.length >= 2 && !$scope.currency) {
|
if (currencySplit.length >= 2 && $scope.currency.length === 0) {
|
||||||
$scope.currency = currencySplit[currencySplit.length - 1];
|
$scope.currency = currencySplit[currencySplit.length - 1];
|
||||||
}
|
}
|
||||||
$scope.currency = $scope.currency || '';
|
|
||||||
|
|
||||||
// Redo this when we have proper formatting for low fees
|
// Redo this when we have proper formatting for low fees
|
||||||
if ($scope.value.indexOf("<") === 0) {
|
if ($scope.value.indexOf("<") === 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue