From bd882f5f1eaec5fda1b7e4dfb27710c68b4fc689 Mon Sep 17 00:00:00 2001 From: schinken Date: Sun, 16 Oct 2016 14:44:17 +0200 Subject: [PATCH] Fix replace bug --- src/script/lib/modals/customTransaction/customTransaction.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/script/lib/modals/customTransaction/customTransaction.js b/src/script/lib/modals/customTransaction/customTransaction.js index 0884f60..6d4d4d4 100644 --- a/src/script/lib/modals/customTransaction/customTransaction.js +++ b/src/script/lib/modals/customTransaction/customTransaction.js @@ -24,10 +24,6 @@ angular $modalInstance.close(); }; - function normalizeDecimals(value) { - return value.replace(',', '.'); - } - function isValidNumber(value) { return !isNaN(parseFloat(value)) && isFinite(value); } @@ -50,7 +46,6 @@ angular Audio.play(settings.audio.transaction); } - value = normalizeDecimals(value); if(!isValidNumber(value)) { return Message.error('customTransactionValueInvalid'); }