second pass. low
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user