blob: 5e379c32f69241f6082f2423f6d6bf8a05c17a34 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<script>
import { goto } from "$app/navigation";
import Pin from "$comp/Pin.svelte";
import { pin } from "$lib/store";
export let data;
let { user } = data;
let cancel = () => goto(`/${user.username}`);
</script>
{#if user.haspin && (!$pin || $pin?.length !== 6)}
<Pin bind:value={$pin} {cancel} />
{/if}
<slot />
|