-
Notifications
You must be signed in to change notification settings - Fork 138
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
Displaying Ties and OTL in Records #446
Comments
Yeah it's confusing to format records with OTL and ties enabled. Not sure if any IRL leagues have both, and if so how they show them? You did find the correct place to change how records are formatted, the So far you identified these places:
And I also found this similar one from a quick search of the codebase:
If you want to send a PR to fix this, feel free! If not, let me know and I'll fix it myself - it's an easy fix for me, but if you want to have fun and try to do it yourself, you can :) |
I'll try myself, I could use the experience with TS |
Going through the files, this fix also shows when OTL's are disabled. In a league where there are ties and no OTL's, it'll display Edit: or is there a way to store OTL's as null (when its disabled), then check if the value is null? |
No, there's two complications:
Both of those could be solved relatively easily, but there's another problem:
That would be a bit more work to fix. And I'm not inclined to do any of this, because the current formatRecord behavior works good enough and doesn't require it. Sorry if that makes things worse for your version :) |
So I was playing hockey GM with a league that allowed OTL's and ties. When displaying the record, there is no distinction from OTL and ties if you have 0 OTL and 1 or more ties. Like in my case, I have one tie and no OTL's. The record is really confusing then, making me believe that I have 1 OTL, not 1 tie.
I figured out how to change this in the
helper.js
file at line 1337 with the code above. It now displays like this:This was my type of fix, which works on my roster page. This doesn't work on the dashboard page and draft lottery page, and I can't seem to figure out what else generates the record text.
What other files need to be changed in other for the records to be displayed properly?
The text was updated successfully, but these errors were encountered: