tablechamp-app
tablechamp-app copied to clipboard
Total games not record not accurate - some games not being saved.
It appears when a doubles match is played, the record of 1 or more players is not saved. I haven't dug into the logging yet.
Full disclosure: I have no idea what I'm doing.
That said, I believe lines 758-765 in js/source/tablechamp.js are responsible for the error.
For example, line 758 reads var t1p1GamesLost = localData.playersByKey[t1p1Key].singles_lost;
I believe line 758 should read var t1p1GamesLost = localData.playersByKey[t1p1Key].doubles_lost;
I implemented similar changes (replacing singles_lost with doubles_lost) in lines 758-765 in js/source/tablechamp.js and that seems to have resolved the issue.