From 814e8d817bf2cccb1b8a4a4ac2e9cf52b115a539 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 22 Oct 2023 11:14:05 -0700 Subject: feat(tools): use string query parameters --- src/routes/tools/+page.svelte | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/routes/tools/+page.svelte b/src/routes/tools/+page.svelte index 3976aeba..75bf5a40 100644 --- a/src/routes/tools/+page.svelte +++ b/src/routes/tools/+page.svelte @@ -6,25 +6,27 @@ export let data; - let tool = browser ? Number(new URLSearchParams(window.location.search).get('tool')) || 0 : 0; + let tool = browser + ? String(new URLSearchParams(window.location.search).get('tool')) || 'default' + : 'default';

-{#if tool === 0} +{#if tool === 'default'} Select a tool to continue. -{:else if tool === 2} +{:else if tool === 'activity_history_hole_risks'} -{:else if tool === 3} +{:else if tool === 'wrapped'}
-{:else if tool === 1} +{:else if tool === 'todays_character_birthdays'}