Open TheOddCell opened 3 months ago
Seems like a simple fix. en-croissant/src/components/home/AccountCard.tsx
line 144 const percentage = ((downloadedGames / total) * 100).toFixed(2);
. Just need to add an if statement for if total is 0. What would the expected result be here though? 100%? 0%?
I can add in the fix if anybody has thoughts on what the expected result should be?
Describe the bug
When you use a Lichess (not tested with chess.com, used browser sign-in) account with NO GAMES PLAYED, it will show NaN% as the download persentage.
Reproduction
Platform and versions
Windows 11 Pro 23E2 Build 22631.3958, Version: 0.10.0 Tauri version: 1.6.1
Stack trace
No response