Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match summary pages not displaying #328

Merged
merged 3 commits into from
Jan 12, 2021
Merged

Match summary pages not displaying #328

merged 3 commits into from
Jan 12, 2021

Conversation

jj-apps
Copy link
Contributor

@jj-apps jj-apps commented Jan 9, 2021

#317
Add logic to handle incomplete battle tags. The issue is caused by incorrect battletag data stored in the database (i.e. 'iDentify' is in the db, but it should be iDentify#11833). The new logic will attempt to match the player if no matching battletag is found.

w3champions/w3champions-statistic-service/#113

player.battleTag.startsWith(s.battleTag)
)
);
)
.map((s) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you extract this into a function with some parameters cuz it seems like alot of duplicated code:
full/partial battleTag match, winner/loser

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@abeninski PR has been updated.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh much better

@abeninski abeninski merged commit f8476a5 into master Jan 12, 2021
@abeninski abeninski deleted the match-detail-bug branch January 12, 2021 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants