Ensure correct input for formating

master
Martin Zwigl 2025-03-22 23:26:00 +01:00
parent 6efdce35da
commit bf12d907a5
2 changed files with 3 additions and 3 deletions

View File

@ -7,8 +7,8 @@
* @returns {string} The formatted string.
*/
exports.formatPriceString = function(input) {
// Convert input to a number
let number = parseFloat(input);
// Ensure input is a number
let number = typeof input === 'string' ? parseFloat(input) : input;
// Check if input is not a number
if (isNaN(number)) {

View File

@ -1,7 +1,7 @@
{ "id": "coin_info",
"name": "Crypto-Coins Info",
"shortName":"Coins Info",
"version": "0.07.02",
"version": "0.07.03",
"description": "Crypto-Coins Infos with the help of the Binance API",
"icon": "app.png",
"tags": "clkinfo",