From 9d2c96e1801a7858837c298e94398f2352c0c0e7 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Tue, 7 Jan 2020 16:40:51 +0100 Subject: [PATCH] Update EditServers.plugin.js --- Plugins/EditServers/EditServers.plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/EditServers/EditServers.plugin.js b/Plugins/EditServers/EditServers.plugin.js index f4b941e892..9dd111102b 100644 --- a/Plugins/EditServers/EditServers.plugin.js +++ b/Plugins/EditServers/EditServers.plugin.js @@ -256,7 +256,7 @@ class EditServers { } processGuildIconWrapper (e) { - if (BDFDB.GuildUtils.is(e.instance.props.guild) { + if (BDFDB.GuildUtils.is(e.instance.props.guild)) { let settings = BDFDB.DataUtils.get(this, "settings"); if (e.instance.props.className && e.instance.props.className.indexOf(BDFDB.disCN.guildfolderguildicon) > -1) e.instance.props.guild = this.getGuildData(e.instance.props.guild.id, settings.changeInGuildList); else if (e.instance.props.className && e.instance.props.className.indexOf(BDFDB.disCN.listavatar) > -1) e.instance.props.guild = this.getGuildData(e.instance.props.guild.id, settings.changeInMutualGuilds); @@ -265,7 +265,7 @@ class EditServers { } processGuildIcon (e) { - if (BDFDB.GuildUtils.is(e.instance.props.guild && e.instance.props.style && (!e.instance.props.style.backgroundImage || e.instance.props.style.backgroundImage == "none")) { + if (BDFDB.GuildUtils.is(e.instance.props.guild) && e.instance.props.style && (!e.instance.props.style.backgroundImage || e.instance.props.style.backgroundImage == "none")) { let data = BDFDB.DataUtils.load(this, "servers", e.instance.props.guild.id); if (data) { let settings = BDFDB.DataUtils.get(this, "settings");