remove last operator
This commit is contained in:
parent
7ee2cd756e
commit
141602a5ac
1 changed files with 6 additions and 1 deletions
|
|
@ -142,7 +142,12 @@ angular.module('copayApp.controllers').controller('inputAmountController', funct
|
|||
};
|
||||
|
||||
function format(val) {
|
||||
return val.toString().replace('x', '*');
|
||||
var result = val.toString();
|
||||
|
||||
if (isOperator(lodash.last(val)))
|
||||
result = result.slice(0, -1);
|
||||
|
||||
return result.replace('x', '*');
|
||||
};
|
||||
|
||||
$scope.finish = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue