diff --git a/app/js/lib/heroData.js b/app/js/lib/heroData.js index a5493c91..58bad893 100644 --- a/app/js/lib/heroData.js +++ b/app/js/lib/heroData.js @@ -38,7 +38,7 @@ module.exports = { heroesByName[result.name] = result; } - if (newHeroesList.legnth >= heroNameList.length) { + if (newHeroesList.length >= heroNameList.length) { Files.saveFile(Files.getDataPath() + '/e7dbherodata.json', JSON.stringify(heroesByName)); } }