tablechamp-app icon indicating copy to clipboard operation
tablechamp-app copied to clipboard

Total games not record not accurate - some games not being saved.

Open mgrpowers opened this issue 6 years ago • 1 comments

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.

mgrpowers avatar Jun 14 '18 20:06 mgrpowers

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.

Josh-Arment avatar Jan 14 '19 02:01 Josh-Arment