fix errors

This commit is contained in:
Fran Jurmanović
2025-06-26 00:54:28 +02:00
parent 53c023ca4d
commit 283de4f27c

View File

@@ -3,10 +3,12 @@
import { user } from '$stores/user';
import type { LayoutData } from './$types';
let { data } = $props<LayoutData>();
let { data, children } = $props<LayoutData>();
// Set the user store with data from the server
$: $user = data.user;
$effect(() => {
$user = data.user;
});
</script>
<div class="layout">