diff --git a/.vitepress/routes/index.post.ts b/.vitepress/routes/index.post.ts index 9560f318e..38164174d 100644 --- a/.vitepress/routes/index.post.ts +++ b/.vitepress/routes/index.post.ts @@ -14,8 +14,8 @@ const feedbackOptions = [ }, ]; -function getFeedbackOption(value: string) { - return feedbackOptions.find((option) => option.value === value); +function getFeedbackOption(value: string): string { + return feedbackOptions.find((option) => option.value === value).label; } export default defineEventHandler(async (event) => { @@ -36,7 +36,7 @@ export default defineEventHandler(async (event) => { embeds: [ { color: 3447003, - title: getFeedbackOption(type).label, + title: getFeedbackOption(type), description, }, ], diff --git a/.vitepress/theme/components/Feedback.vue b/.vitepress/theme/components/Feedback.vue index cbf38bdcc..05e047776 100644 --- a/.vitepress/theme/components/Feedback.vue +++ b/.vitepress/theme/components/Feedback.vue @@ -1,7 +1,7 @@