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

[BUG] Playoff Stats are Doubled #315

Open
boprice opened this issue Aug 7, 2024 · 0 comments
Open

[BUG] Playoff Stats are Doubled #315

boprice opened this issue Aug 7, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@boprice
Copy link

boprice commented Aug 7, 2024

Describe the bug
Wins, Losses, Ties, Points, etc. are all being counted twice for the Playoff Stats.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Records page
  2. Select Playoffs
  3. Scroll down to Playoff Rankings
  4. You will notice that teams have twice has many games as they should, as well as twice as many points.
  5. The PPG ends up being correct because everything was doubled, so the result does not change.

Very Easy Fix

There are duplicate lined league-page/src/lib/utils/helperFunctions/leagueRecords.js

Lines 467 & 469
postSeasonData = meshPostSeasonData(postSeasonData, pSD);

Just remove one of the duplicates and your records will be perfect!

@boprice boprice added the bug Something isn't working label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants