We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c675c85 commit 344ff2cCopy full SHA for 344ff2c
src/components/Player/Timeouts.js
@@ -26,7 +26,7 @@ function Timeouts({ order }) {
26
}
27
const toIndiv = summary.players.timeouts.filter(rec => rec.user === user.id);
28
timeoutsSetter(toIndiv);
29
- const toLatest = Math.max(...toIndiv.map(rec => rec.value));
+ const toLatest = Math.max(0, ...toIndiv.map(rec => rec.value));
30
let count = 0;
31
for (const rec of allRecs) {
32
const datems = new Date(rec.header["date-end"]).getTime();
0 commit comments