diff --git a/src/routes/(components)/signup.svelte b/src/routes/(components)/signup.svelte index c74b1ea..60dc84b 100644 --- a/src/routes/(components)/signup.svelte +++ b/src/routes/(components)/signup.svelte @@ -62,35 +62,6 @@ let firstname = $state(""); let lastname = $state(""); let remainingseconds = $state(5); - - // Function to handle automatic return to welcome screen - function startCountdown() { - if (currentStep.progress === 100) { - remainingseconds = 10; - const timer = setInterval(() => { - remainingseconds -= 1; - if (remainingseconds <= 0) { - clearInterval(timer); - currentStep = Steps.WELCOME; - } - }, 1000); - return timer; - } - return null; - } - - import { onDestroy } from "svelte"; - - // Watch for changes to currentStep - $effect(() => { - if (currentStep.progress === 100) { - const timer = startCountdown(); - // Cleanup when component is destroyed - onDestroy(() => { - if (timer) clearInterval(timer); - }); - } - });
@@ -216,9 +187,9 @@ Alright that's it, just walk up to the next available person and tell them your name.
You can scan this qr code to login to our selfservice. + +

- - TODO: {:else if currentStep.name == Steps.SIGNIN.name}
-

- Returning to the home screen in {remainingseconds} seconds... -

{/if}