Skip to content

Commit

Permalink
Merge pull request #38134 from kubabutkiewicz/fix/missing-emojis-in-s…
Browse files Browse the repository at this point in the history
…uggestions

Fix missing emojis in suggestion after changing skin color
  • Loading branch information
rlinoz authored Mar 13, 2024
2 parents 632b1f8 + f31cd54 commit ffb7c5e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/libs/EmojiUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,8 @@ function getFrequentlyUsedEmojis(newEmoji: Emoji | Emoji[]): FrequentlyUsedEmoji
/**
* Given an emoji item object, return an emoji code based on its type.
*/
const getEmojiCodeWithSkinColor = (item: Emoji, preferredSkinToneIndex: OnyxEntry<string | number>): string | undefined => {
const getEmojiCodeWithSkinColor = (item: Emoji, preferredSkinToneIndex: OnyxEntry<number | string>): string => {
const {code, types} = item;
if (!preferredSkinToneIndex) {
return;
}

if (typeof preferredSkinToneIndex === 'number' && types?.[preferredSkinToneIndex]) {
return types[preferredSkinToneIndex];
Expand Down

0 comments on commit ffb7c5e

Please sign in to comment.