Skip to content

Commit

Permalink
Move exceptEmojis check into existing condition
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneLem committed Jan 18, 2023
1 parent cd3b487 commit d21bc4a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/emoji-mart/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ async function _init(props) {
category.emojis.splice(emojiIndex, 1)
}

if (!emoji) {
if (!emoji || props.exceptEmojis.includes(emoji.id)) {
ignore()
continue
}
Expand All @@ -195,11 +195,6 @@ async function _init(props) {
}
}

if (props.exceptEmojis.includes(emoji.id)) {
ignore()
continue
}

if (!emoji.search) {
resetSearchIndex = true
emoji.search =
Expand Down

0 comments on commit d21bc4a

Please sign in to comment.