1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

fix build

This commit is contained in:
Matthew Hodgson
2019-05-19 16:11:12 +01:00
parent dc72641264
commit a8297a7698
5 changed files with 12 additions and 8 deletions

View File

@@ -73,7 +73,7 @@ export function containsEmoji(str) {
*/
export function unicodeToShortcode(char) {
const data = EMOJIBASE.find((e)=>{ e.unicode === char });
return (data && data.shortcodes ? data.shortcodes[0] : '';
return (data && data.shortcodes ? data.shortcodes[0] : '');
}
/**