aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-03-04 18:40:37 +0100
committerVendicated <vendicated@riseup.net>2023-03-04 18:41:32 +0100
commitcab72e1be627fb7cb06725d0a3e262e214de170f (patch)
treedcd1daddf420be1bad26955d15ec4ea9ec65abfb /src/components
parent92372bde1d422e2daf2e24dd05ae5f4d73f5ebcb (diff)
downloadVencord-cab72e1be627fb7cb06725d0a3e262e214de170f.tar.gz
Vencord-cab72e1be627fb7cb06725d0a3e262e214de170f.tar.bz2
Vencord-cab72e1be627fb7cb06725d0a3e262e214de170f.zip
Strongly type useSettings (supersedes #559)
Diffstat (limited to 'src/components')
-rw-r--r--src/components/PluginSettings/index.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx
index 3d69a60..02d89f8 100644
--- a/src/components/PluginSettings/index.tsx
+++ b/src/components/PluginSettings/index.tsx
@@ -93,7 +93,7 @@ interface PluginCardProps extends React.HTMLProps<HTMLDivElement> {
}
function PluginCard({ plugin, disabled, onRestartNeeded, onMouseEnter, onMouseLeave, isNew }: PluginCardProps) {
- const settings = useSettings([`plugins.${plugin.name}`]).plugins[plugin.name];
+ const settings = useSettings([`plugins.${plugin.name}.enabled`]).plugins[plugin.name];
const isEnabled = () => settings.enabled ?? false;