Skip to content

Commit 0f83441

Browse files
committed
fix(lint): use SvelteMap instead of Map
Signed-off-by: Matt Gleich <git@mattglei.ch>
1 parent 6f3e43d commit 0f83441

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib/index/sections/workouts/stats.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
import Stats from '$lib/stats.svelte';
44
import { renderDuration } from '$lib/time';
55
import { onMount } from 'svelte';
6+
import { SvelteMap } from 'svelte/reactivity';
67
78
const { workout }: { workout: Workout } = $props();
89
910
let imperialUnits = $state(false);
1011
let stats = $derived(
11-
new Map<string, string>([['Duration', renderDuration(workout.moving_time)]])
12+
new SvelteMap<string, string>([['Duration', renderDuration(workout.moving_time)]])
1213
);
1314
1415
onMount(() => {
@@ -72,7 +73,7 @@
7273
stats.set('Sets', `${workout.hevy_set_count ?? 0}`);
7374
}
7475
75-
stats = new Map(stats);
76+
stats = new SvelteMap(stats);
7677
});
7778
</script>
7879

0 commit comments

Comments
 (0)