Skip to content

Commit d672df2

Browse files
Type fixes
1 parent c4ccaf1 commit d672df2

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/lib/holocene/day-of-week-picker.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
{@const active = daysOfWeek.includes(value)}
3838
<Button
3939
variant="secondary"
40-
class={active && 'bg-interactive-secondary-active'}
40+
class={active ? 'bg-interactive-secondary-active' : undefined}
4141
on:click={(e) => onClick(e, value)}
4242
>
4343
{label}
@@ -49,7 +49,7 @@
4949
{@const active = daysOfWeek.includes(value)}
5050
<Button
5151
variant="secondary"
52-
class={active && 'bg-interactive-secondary-active'}
52+
class={active ? 'bg-interactive-secondary-active' : undefined}
5353
on:click={(e) => onClick(e, value)}
5454
>
5555
{label}

src/lib/holocene/month-picker.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
{@const active = months.includes(value)}
3030
<Button
3131
variant="secondary"
32-
class={active && 'bg-interactive-secondary-active'}
32+
class={active ? 'bg-interactive-secondary-active' : undefined}
3333
on:click={(e) => onClick(e, value)}
3434
>
3535
{label}

src/routes/+error.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
const error = $derived(page.error);
1313
const status = $derived.by(() => {
1414
let resolvedStatus: number = page.status;
15-
let requestFromAPIError: Record<string, unknown>;
15+
let requestFromAPIError: Record<string, unknown> = {};
1616
1717
try {
1818
if (error?.message) {

0 commit comments

Comments
 (0)