mirror of
1
Fork 0

remove superfluous logging

This commit is contained in:
f0x 2023-01-08 17:30:55 +00:00
parent 5a10557e47
commit 4bb308b1f2
3 changed files with 7 additions and 9 deletions

View File

@ -87,7 +87,6 @@ function EmojiDetail({emoji}) {
React.useEffect(() => { React.useEffect(() => {
if (category != emoji.category && !categoryState.open && !isNewCategory && category.trim().length > 0) { if (category != emoji.category && !categoryState.open && !isNewCategory && category.trim().length > 0) {
console.log("updating to", category);
modifyEmoji({id: emoji.id, category: category.trim()}); modifyEmoji({id: emoji.id, category: category.trim()});
} }
}, [isNewCategory, category, categoryState.open, emoji.category, emoji.id, modifyEmoji]); }, [isNewCategory, category, categoryState.open, emoji.category, emoji.id, modifyEmoji]);

View File

@ -97,13 +97,13 @@ module.exports = function NewEmojiForm({ emoji }) {
image, image,
shortcode, shortcode,
category category
}).unwrap(); });
}).then(() => { }).then((res) => {
resetFile(); if (res.error == undefined) {
resetShortcode(); resetFile();
resetCategory(); resetShortcode();
}).catch((e) => { resetCategory();
console.error("Emoji upload error:", e); }
}); });
} }

View File

@ -164,7 +164,6 @@ function BulkBlocking() {
setStatus(stat); setStatus(stat);
}); });
}).catch((e) => { }).catch((e) => {
console.error(e);
setError(e.message); setError(e.message);
setStatus(""); setStatus("");
}); });