Skip to content

Commit

Permalink
Fix replace bug
Browse files Browse the repository at this point in the history
  • Loading branch information
schinken committed Oct 16, 2016
1 parent 211c2e1 commit bd882f5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/script/lib/modals/customTransaction/customTransaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ angular
$modalInstance.close();
};

function normalizeDecimals(value) {
return value.replace(',', '.');
}

function isValidNumber(value) {
return !isNaN(parseFloat(value)) && isFinite(value);
}
Expand All @@ -50,7 +46,6 @@ angular
Audio.play(settings.audio.transaction);
}

value = normalizeDecimals(value);
if(!isValidNumber(value)) {
return Message.error('customTransactionValueInvalid');
}
Expand Down

0 comments on commit bd882f5

Please sign in to comment.