blob: 47c11f1cb4070387b3364286a90d316569a27c5a (
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';
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 />
|