Fix bug
This commit is contained in:
parent
8cb9852058
commit
1181fcdceb
4 changed files with 11 additions and 11 deletions
|
@ -20,7 +20,7 @@ export async function getFallbackReaction(): Promise<string> {
|
|||
return meta.useStarForReactionFallback ? 'star' : 'like';
|
||||
}
|
||||
|
||||
export async function toDbReaction(reaction: string, enableEmoji = true): Promise<string> {
|
||||
export async function toDbReaction(reaction?: string | null, enableEmoji = true): Promise<string> {
|
||||
if (reaction == null) return await getFallbackReaction();
|
||||
|
||||
// 既存の文字列リアクションはそのまま
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue