fix low level issues

This commit is contained in:
Davide Scaini
2026-03-31 23:22:12 +02:00
parent 8f91503cf7
commit 81438231b4
19 changed files with 126 additions and 44 deletions
+2 -1
View File
@@ -4,6 +4,7 @@
import { formatDate, sportIcon, sportColor } from '../lib/format';
export let athlete: AthleteJson;
export let base: string = '/';
// ── Distance label formatting ──────────────────────────────────────────────
function distLabel(km: number): string {
@@ -96,7 +97,7 @@
return (athlete as any).records?.[sport]?.[key] ?? null;
}
const activityUrl = (id: string) => `/activity/${id}/`;
const activityUrl = (id: string) => `${base}activity/${id}/`;
</script>
<!-- Sport tabs -->