Skip to content

Commit

Permalink
fix: emoji colorization
Browse files Browse the repository at this point in the history
  • Loading branch information
acid-chicken committed Mar 1, 2024
1 parent fe5efd9 commit f704891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/scripts/emojilist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const emojiCharByCategory = _charGroupByCategory;

export function getUnicodeEmoji(char: string): UnicodeEmojiDef | null {
// Colorize it because emojilist.json assumes that
return unicodeEmojisMap.get(colorizeEmoji(char)) ?? null;
return unicodeEmojisMap.get(colorizeEmoji(char)) ?? unicodeEmojisMap.get(char) ?? null;
}

export function getEmojiName(char: string): string | null {
Expand Down

0 comments on commit f704891

Please sign in to comment.