diff --git a/src/js/services/bitcoin-uri.service.js b/src/js/services/bitcoin-uri.service.js index 7d5cef2ba..e5aaacbc2 100644 --- a/src/js/services/bitcoin-uri.service.js +++ b/src/js/services/bitcoin-uri.service.js @@ -205,8 +205,8 @@ switch(key) { case 'amount': var amount = parseFloat(decodedValue); - if (amount) { // Checking for NaN, or no numbers at all etc. - parsed.amount = decodedValue; + if (amount) { // Checking for NaN, or no numbers at all etc. & convert to satoshi + parsed.amount = decodedValue * 100000000; // Need to check if a currency is precised } else { return parsed; } @@ -342,4 +342,4 @@ } -})(); \ No newline at end of file +})();