emoji-picker-react 4.17.2 → 4.17.3

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.17.2",
2
+ "version": "4.17.3",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -131,7 +131,14 @@ export function useGetEmojisByCategory() {
131
131
  const suggested = getSuggested(suggestedEmojisModeConfig) ?? [];
132
132
 
133
133
  return suggested
134
- .map((s) => emojiByUnified(s.unified))
134
+ .map((s) => {
135
+ const emoji = emojiByUnified(s.unified);
136
+ if (!emoji) return undefined;
137
+ return {
138
+ ...emoji,
139
+ [Keys.unified]: s.unified,
140
+ };
141
+ })
135
142
  .filter(Boolean) as DataEmojis;
136
143
  // eslint-disable-next-line react-hooks/exhaustive-deps
137
144
  }, [suggestedUpdated, suggestedEmojisModeConfig, emojiByUnified]);