maybe now?!?
All checks were successful
Deploy / deploy (push) Successful in 2m47s

This commit is contained in:
Lee
2024-09-28 06:31:25 +01:00
parent 32e8468126
commit 0410f6b324
4 changed files with 25 additions and 6 deletions

View File

@ -169,6 +169,7 @@ type Props = {
};
export default function PlayerRankChart({ player }: Props) {
console.log(player.statisticHistory);
if (
player.statisticHistory === undefined ||
Object.keys(player.statisticHistory).length === 0
@ -193,6 +194,7 @@ export default function PlayerRankChart({ player }: Props) {
// Create labels based on days ago
if (daysAgo === 0) {
labels.push("Today");
console.log(dateString);
} else if (daysAgo === 1) {
labels.push("Yesterday");
} else {