diff --git a/lib/explorer.js b/lib/explorer.js index 4ce60680..d3e9d383 100644 --- a/lib/explorer.js +++ b/lib/explorer.js @@ -154,7 +154,7 @@ function normalizeMasternodeCount(raw_count) { total: splitCount[1].trim() }; // check if the data is in the format of "Total: {total_count} Enabled: {enabled_count}" - } else if (raw_count.indexOf('Total: ') > -1 && raw_count.indexOf('Enabled: ')) { + } else if (raw_count.toString().indexOf('Total: ') > -1 && raw_count.toString().indexOf('Enabled: ')) { // Total: {total_count} Enabled: {enabled_count}" format detected const totalRegex = /Total: (\d+)/; const enabledRegex = /Enabled: (\d+)/;