emoji-picker-react 4.5.12 → 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.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.5.12",
2
+ "version": "4.5.13",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -93,9 +93,7 @@ export function emojiByUnified(unified?: string): DataEmoji | undefined {
93
93
  export const allEmojis: DataEmojis = Object.values(emojis).flat();
94
94
 
95
95
  export function setCustomEmojis(customEmojis: CustomEmoji[]): void {
96
- if (!customEmojis || customEmojis.length === 0) {
97
- emojis[Categories.CUSTOM].length = 0;
98
- }
96
+ emojis[Categories.CUSTOM].length = 0;
99
97
 
100
98
  customEmojis.forEach(emoji => {
101
99
  const emojiData = customToRegularEmoji(emoji);