Ensure correct input for formating
parent
6efdce35da
commit
bf12d907a5
|
|
@ -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)) {
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue