Skip to content

Commit

Permalink
fixed bug in isGL()
Browse files Browse the repository at this point in the history
  • Loading branch information
NB10328 authored and NB10328 committed Dec 16, 2020
1 parent 1810f48 commit ed2b6e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swgoh-api-swgohhelp",
"version": "0.1.0",
"version": "0.1.1",
"description": "SWGoH helper API for swgoh.help",
"main": "index.js",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion swgohhelp-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ class SwgohHelpApi {
* @returns {boolean} Whether this unit is a GL.
*/
static isGL(unitData) {
return unitData.skills.filter(skill => skill.nameKey.includes('GALACTICLEGEND')).length > 0;
return unitData.skills.filter(skill => skill.id.includes('GALACTICLEGEND')).length > 0;
}

/**
Expand Down

0 comments on commit ed2b6e5

Please sign in to comment.