diff --git a/web/src/components/buttons/SettingsButton.svelte b/web/src/components/buttons/SettingsButton.svelte index a0a29e12..bb2a6f13 100644 --- a/web/src/components/buttons/SettingsButton.svelte +++ b/web/src/components/buttons/SettingsButton.svelte @@ -3,7 +3,7 @@ generics=" Context extends Exclude, Id extends keyof CobaltSettings[Context], - Key extends CobaltSettings[Context][Id] + Value extends CobaltSettings[Context][Id] " > import settings, { updateSetting } from "$lib/settings"; @@ -11,20 +11,20 @@ export let settingContext: Context; export let settingId: Id; - export let settingKey: Key; + export let settingValue: Value; $: setting = $settings[settingContext][settingId]; - $: isSelected = setting === settingKey; + $: isSelected = setting === settingValue;