<script lang="ts">
	import { onMount } from 'svelte';
	import { userStore } from '../UserStore.svelte';
	import { goto } from '$app/navigation';

	onMount(() => {
		userStore.user = undefined;
		goto('/');
	});
</script>
