From f522c0ea7edbe821f17f2a27e8838c62f1f34f4b Mon Sep 17 00:00:00 2001 From: maamokun/MikanDev Date: Tue, 13 Aug 2024 16:02:14 +0900 Subject: [PATCH] Proper validation for premium --- src/gen/level.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gen/level.ts b/src/gen/level.ts index 7eb1acc..6b281e0 100644 --- a/src/gen/level.ts +++ b/src/gen/level.ts @@ -93,7 +93,7 @@ export async function createLevel({ ctx.fillText(`Rank ${rank}`, 1320, 115); } - if (premium) { + if (premium === "true") { const x2 = 970; // Rectangle X position const y2 = 10; // Rectangle Y position const width2 = 300; // Rectangle width @@ -117,7 +117,7 @@ export async function createLevel({ ctx.fillText("Premium User", 1075, 49); } - if (acc) { + if (acc === "true") { const x2 = 970; // Rectangle X position const y2 = 75; // Rectangle Y position const width2 = 300; // Rectangle width