Fix amount

This commit is contained in:
Jean-Baptiste Dominguez 2018-08-10 18:41:47 +09:00
commit 5185c6ee3c

View file

@ -90,7 +90,7 @@
// to both being in value. Don't want to use previous currency value.
// Try to extract currency from value..
var currencySplit = $scope.value.split(" ");
if (currencySplit.length === 2) {
if (currencySplit.length === 2 && !$scope.currency) {
$scope.currency = currencySplit[1];
}
$scope.currency = $scope.currency || '';