diff --git a/src/ContentSwitcher/Switch.svelte b/src/ContentSwitcher/Switch.svelte index 40b52c71db..2e17205de7 100644 --- a/src/ContentSwitcher/Switch.svelte +++ b/src/ContentSwitcher/Switch.svelte @@ -23,8 +23,8 @@ ctx.add({ id, text, selected }); - const unsubscribe = ctx.currentId.subscribe(($) => { - selected = $ === id; + const unsubscribe = ctx.currentId.subscribe((currentIdVal) => { + selected = currentIdVal === id; }); afterUpdate(() => { diff --git a/src/ProgressIndicator/ProgressIndicator.svelte b/src/ProgressIndicator/ProgressIndicator.svelte index 688a797ad8..050562b1d7 100644 --- a/src/ProgressIndicator/ProgressIndicator.svelte +++ b/src/ProgressIndicator/ProgressIndicator.svelte @@ -16,8 +16,8 @@ const dispatch = createEventDispatcher(); const steps = writable([]); - const stepsById = derived(steps, ($) => - $.reduce((a, c) => ({ ...a, [c.id]: c }), {}) + const stepsById = derived(steps, (stepStore) => + stepStore.reduce((a, c) => ({ ...a, [c.id]: c }), {}) ); const preventChangeOnClickStore = writable(preventChangeOnClick);