Skip to content

Commit

Permalink
fix: isPrivate not recognized
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed Jun 15, 2024
1 parent 3d4fd88 commit 5e043a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/database/register/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ export async function validateUser(interaction: ButtonInteraction, template: Sta
const ul = ln(interaction.locale as Locale);
const oldEmbeds = ensureEmbed(interaction.message);
const oldEmbedsFields = parseEmbedFields(oldEmbeds);
console.log(oldEmbedsFields);
let userID = oldEmbedsFields?.["common.user"];
let charName: string | undefined = oldEmbedsFields?.["common.charName"];
const isPrivate = oldEmbedsFields["common.isPrivate"] === "";
const isPrivate = oldEmbedsFields["common.isPrivate"] === "common.yes";
if (charName && charName === "common.noSet")
charName = undefined;
if (!userID) {
Expand Down

0 comments on commit 5e043a9

Please sign in to comment.