From 27e4e8cb77d018094682d4909c1669c1b80f7d65 Mon Sep 17 00:00:00 2001 From: Mara Date: Sat, 15 Jun 2024 06:51:31 +0200 Subject: [PATCH] fix: capitalize for userEmbed fields name --- src/database/register/validate.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/database/register/validate.ts b/src/database/register/validate.ts index 51b71d33..49900822 100644 --- a/src/database/register/validate.ts +++ b/src/database/register/validate.ts @@ -58,7 +58,6 @@ 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"] === "common.yes"; @@ -93,7 +92,7 @@ export async function validateUser(interaction: ButtonInteraction, template: Sta inline: true, }); - } else if (findKeyFromTranslation(field.name) !== "common.isPrivate") userDataEmbed.addFields(field); + } else if (findKeyFromTranslation(field.name) !== "common.isPrivate") userDataEmbed.addFields({ name: field.name, value: title(field.value), inline: field.inline }); } const templateStat = template.statistics ? Object.keys(template.statistics) : []; const stats: { [name: string]: number } = {};