From 80a2e9ddef2b860bb1ba2e12dfbba7e8331da748 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Wed, 17 Apr 2024 10:55:42 +1000 Subject: [PATCH] Remove unnecessary text in leaderboard graph --- src/components/CanvasBuilder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CanvasBuilder.ts b/src/components/CanvasBuilder.ts index 5f74301..57c74b4 100644 --- a/src/components/CanvasBuilder.ts +++ b/src/components/CanvasBuilder.ts @@ -126,7 +126,7 @@ export default class CanvasBuilder { this.ctx.fillText(type === 'leaderboard' ? '0 msgs' : '0', origin[0] + size[0] + textSize / 2, origin[1] + size[1] + (textSize / 3)); // 30 day (minute for /mp players) - this.ctx.fillText(type === 'leaderboard' ? '30 days ago' : '30 mins ago', lastStart, origin[1] - (textSize / 2)); + this.ctx.fillText(type === 'players' ? '30 mins ago' : '', lastStart, origin[1] - (textSize / 2)); // Time this.ctx.fillText('time ->', origin[0] + (textSize / 2), origin[1] + size[1] + (textSize));