Skip to content

Commit

Permalink
Proper validation for premium
Browse files Browse the repository at this point in the history
  • Loading branch information
maamokun committed Aug 13, 2024
1 parent cdaf9dd commit f522c0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gen/level.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f522c0e

Please sign in to comment.