Skip to content

Commit

Permalink
fix: avoid using reserved $ for Svelte 5 compat
Browse files Browse the repository at this point in the history
Co-Authored-By: Eric Fulton <5297269+Sahasrara@users.noreply.github.com>
  • Loading branch information
metonym and Sahasrara committed Mar 7, 2024
1 parent 96aef17 commit e5ea940
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ContentSwitcher/Switch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
ctx.add({ id, text, selected });
const unsubscribe = ctx.currentId.subscribe(($) => {
selected = $ === id;
const unsubscribe = ctx.currentId.subscribe((currentId) => {
selected = currentId === id;
});
afterUpdate(() => {
Expand Down
4 changes: 2 additions & 2 deletions src/ProgressIndicator/ProgressIndicator.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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, (steps) =>
steps.reduce((a, c) => ({ ...a, [c.id]: c }), {})
);
const preventChangeOnClickStore = writable(preventChangeOnClick);
Expand Down

0 comments on commit e5ea940

Please sign in to comment.