remove debug and fix days ago label
All checks were successful
Deploy / deploy (push) Successful in 2m42s

This commit is contained in:
Lee 2024-09-28 06:46:36 +01:00
parent 6079f8228c
commit dda873b2fe

View File

@ -169,7 +169,6 @@ type Props = {
};
export default function PlayerRankChart({ player }: Props) {
console.log(player.statisticHistory);
if (
player.statisticHistory === undefined ||
Object.keys(player.statisticHistory).length === 0
@ -194,11 +193,10 @@ 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 {
labels.push(`${daysAgo} days ago`);
labels.push(`${daysAgo + 1} days ago`);
}
history.rank && histories.rank.push(history.rank);