Skip to content

Commit 0c4f4f1

Browse files
committed
toFixed
1 parent 6b9ea94 commit 0c4f4f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

view/src/components/TotalVisits.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<span class="text-xl">{total}</span>
99
<hr />
1010
<span class="text-xl">
11-
{perDay} / day
11+
{perDay.toFixed(1)} / day
1212
</span>
1313
</div>
1414
</div>

view/src/routes/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
const parsed = v.safeParse(v.array(visit), val);
1818
if (!parsed.success) {
1919
console.error(val, parsed.issues);
20-
throw new Error();
20+
throw new Error(parsed.issues.toString());
2121
}
2222
return parsed.output;
2323
})

0 commit comments

Comments
 (0)