second pass. low

This commit is contained in:
Davide Scaini
2026-04-01 19:00:28 +02:00
parent 3d364c3992
commit bd5831c2fd
11 changed files with 277 additions and 62 deletions
+3 -1
View File
@@ -27,7 +27,9 @@
}
onMount(async () => {
activeTab = (new URLSearchParams(window.location.search).get('tab') as Tab) ?? 'power';
const TABS: Tab[] = ['power', 'records', 'profile'];
const rawTab = new URLSearchParams(window.location.search).get('tab');
activeTab = TABS.includes(rawTab as Tab) ? (rawTab as Tab) : 'power';
mounted = true;
try {
const [athleteRes, indexRes] = await Promise.all([