mirror of
https://github.com/fmhy/edit.git
synced 2026-02-14 23:31:12 +11:00
more linting
This commit is contained in:
parent
84337b7b1d
commit
ae179550bf
7 changed files with 38 additions and 41 deletions
|
|
@ -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,
|
||||
},
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue