Skip to content
This repository was archived by the owner on Sep 13, 2022. It is now read-only.

Conversation

@hammydown4325
Copy link
Contributor

Made it so sponsored gyms are always shown as EX Raid Compatible. Some are not showing up for some people.

Copy link
Collaborator

@CalamityJames CalamityJames left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code seems fine, however I cannot test this in my real world environment as we do not have sponsored gyms here.

static/js/map.js Outdated
}
var exIcon = ''
if ((((park !== 'None' && park !== undefined && onlyTriggerGyms === false && park) || triggerGyms.includes(item['gym_id'])) && (noExGyms === false))) {
if ((((park !== 'None' && park !== undefined && onlyTriggerGyms === false && park) || item['sponsor'] > 0 || triggerGyms.includes(item['gym_id'])) && (noExGyms === false))) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does it handle if item['sponsor'] is not set/undefined?

@hammydown4325
Copy link
Contributor Author

Good thinking. We could use more of that type of logic throughout the map.js file anyway let me add an !== Undefined real quick

@Glennmen
Copy link
Owner

@iroken222 Can you fix the merge conflict, thanks.

@Glennmen
Copy link
Owner

This seems to have already been included in PR #54 so this PR can be closed.

@Glennmen Glennmen closed this Jan 29, 2018
@hammydown4325 hammydown4325 deleted the ex-icons branch April 21, 2018 13:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants