We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 017f34a commit c67ddbcCopy full SHA for c67ddbc
frontend/src/ts/pages/friends.ts
@@ -372,16 +372,16 @@ function formatPb(entry?: PersonalBest):
372
`${result.wpm} wpm`,
373
];
374
375
- if (entry.acc || entry.acc === 0) {
+ if (isSafeNumber(entry.acc)) {
376
details.push(`${result.acc} acc`);
377
}
378
- if (entry.raw || entry.raw === 0) {
+ if (isSafeNumber(entry.raw)) {
379
details.push(`${result.raw} raw`);
380
381
- if (entry.consistency || entry.consistency === 0) {
+ if (isSafeNumber(entry.consistency)) {
382
details.push(`${result.con} con`);
383
384
- if (entry.timestamp) {
+ if (isSafeNumber(entry.timestamp)) {
385
details.push(`${dateFormat(entry.timestamp, "dd MMM yyyy")}`);
386
387
0 commit comments