Ensure correct input for formating
parent
6efdce35da
commit
bf12d907a5
|
|
@ -7,8 +7,8 @@
|
||||||
* @returns {string} The formatted string.
|
* @returns {string} The formatted string.
|
||||||
*/
|
*/
|
||||||
exports.formatPriceString = function(input) {
|
exports.formatPriceString = function(input) {
|
||||||
// Convert input to a number
|
// Ensure input is a number
|
||||||
let number = parseFloat(input);
|
let number = typeof input === 'string' ? parseFloat(input) : input;
|
||||||
|
|
||||||
// Check if input is not a number
|
// Check if input is not a number
|
||||||
if (isNaN(number)) {
|
if (isNaN(number)) {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ "id": "coin_info",
|
{ "id": "coin_info",
|
||||||
"name": "Crypto-Coins Info",
|
"name": "Crypto-Coins Info",
|
||||||
"shortName":"Coins Info",
|
"shortName":"Coins Info",
|
||||||
"version": "0.07.02",
|
"version": "0.07.03",
|
||||||
"description": "Crypto-Coins Infos with the help of the Binance API",
|
"description": "Crypto-Coins Infos with the help of the Binance API",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"tags": "clkinfo",
|
"tags": "clkinfo",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue