diff --git a/web/source/settings/admin/emoji/detail.js b/web/source/settings/admin/emoji/detail.js index 266084718..51e291448 100644 --- a/web/source/settings/admin/emoji/detail.js +++ b/web/source/settings/admin/emoji/detail.js @@ -81,7 +81,7 @@ function EmojiDetail({emoji}) { } React.useEffect(() => { - if (category != emoji.category && !categoryState.open && !isNewCategory && emoji.category != undefined) { + if (category != emoji.category && !categoryState.open && !isNewCategory && category.trim().length > 0) { console.log("updating to", category); modifyEmoji({id: emoji.id, category: category.trim()}); } diff --git a/web/source/settings/components/fake-profile.jsx b/web/source/settings/components/fake-profile.jsx index decd65d83..c69e52b76 100644 --- a/web/source/settings/components/fake-profile.jsx +++ b/web/source/settings/components/fake-profile.jsx @@ -33,10 +33,10 @@ module.exports = function FakeProfile({}) {