diff options
author | V <vendicated@riseup.net> | 2023-09-05 20:10:42 +0200 |
---|---|---|
committer | V <vendicated@riseup.net> | 2023-09-05 20:10:42 +0200 |
commit | 8614e176334232fb5288a5b3255d2daa8245061a (patch) | |
tree | 3d225b6d9e17b01be7b4cc059b8f45989a2bcea3 /src/components/PluginSettings/PluginModal.tsx | |
parent | aecd9d8fda932cc2229a84a45937877b20625758 (diff) | |
download | Vencord-8614e176334232fb5288a5b3255d2daa8245061a.tar.gz Vencord-8614e176334232fb5288a5b3255d2daa8245061a.tar.bz2 Vencord-8614e176334232fb5288a5b3255d2daa8245061a.zip |
Fix some plugins wrongly displaying the settings cog
Diffstat (limited to 'src/components/PluginSettings/PluginModal.tsx')
-rw-r--r-- | src/components/PluginSettings/PluginModal.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/PluginSettings/PluginModal.tsx b/src/components/PluginSettings/PluginModal.tsx index f4cab54..f30cede 100644 --- a/src/components/PluginSettings/PluginModal.tsx +++ b/src/components/PluginSettings/PluginModal.tsx @@ -23,7 +23,7 @@ import ErrorBoundary from "@components/ErrorBoundary"; import { Flex } from "@components/Flex"; import { proxyLazy } from "@utils/lazy"; import { Margins } from "@utils/margins"; -import { classes } from "@utils/misc"; +import { classes, isObjectEmpty } from "@utils/misc"; import { ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalProps, ModalRoot, ModalSize } from "@utils/modal"; import { LazyComponent } from "@utils/react"; import { OptionType, Plugin } from "@utils/types"; @@ -89,7 +89,7 @@ export default function PluginModal({ plugin, onRestartNeeded, onClose, transiti const canSubmit = () => Object.values(errors).every(e => !e); - const hasSettings = Boolean(pluginSettings && plugin.options); + const hasSettings = Boolean(pluginSettings && plugin.options && !isObjectEmpty(plugin.options)); React.useEffect(() => { enableStyle(hideBotTagStyle); |