emoji-picker-react 4.5.11 → 4.5.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16841,12 +16841,10 @@ function emojiByUnified(unified) {
16841
16841
  }
16842
16842
  var allEmojis = /*#__PURE__*/Object.values(emojis).flat();
16843
16843
  function setCustomEmojis(customEmojis) {
16844
- if (!customEmojis || customEmojis.length === 0) {
16845
- emojis[exports.Categories.CUSTOM].length = 0;
16846
- }
16847
-
16844
+ emojis[exports.Categories.CUSTOM].length = 0;
16848
16845
  customEmojis.forEach(function (emoji) {
16849
16846
  var emojiData = customToRegularEmoji(emoji);
16847
+ emojis[exports.Categories.CUSTOM].push(emojiData);
16850
16848
 
16851
16849
  if (allEmojisByUnified[emojiData[EmojiProperties.unified]]) {
16852
16850
  return;
@@ -16854,7 +16852,6 @@ function setCustomEmojis(customEmojis) {
16854
16852
 
16855
16853
  allEmojis.push(emojiData);
16856
16854
  allEmojisByUnified[emojiData[EmojiProperties.unified]] = emojiData;
16857
- emojis[exports.Categories.CUSTOM].push(emojiData);
16858
16855
  indexEmoji(emojiData);
16859
16856
  });
16860
16857
  }