1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 18:06:22 +00:00

oops [] is truthy

This commit is contained in:
newwares 2024-03-23 19:08:47 -04:00
parent 72e885853d
commit 9b90546835

View file

@ -75,7 +75,7 @@ export default definePlugin({
addButton("vc-findreply", message => { addButton("vc-findreply", message => {
if (!message.id) return null; if (!message.id) return null;
const replies = findReplies(message); const replies = findReplies(message);
if (Vencord.Settings.plugins.FindReply.hideButtonIfNoReply && !replies) return null; if (Vencord.Settings.plugins.FindReply.hideButtonIfNoReply && !replies.length) return null;
return { return {
label: "Jump to Reply", label: "Jump to Reply",
icon: FindReplyIcon, icon: FindReplyIcon,