Fixed toasts not working.

This commit is contained in:
2025-02-01 13:00:02 +00:00
parent 9158ca1608
commit cd4bcd544f
8 changed files with 47 additions and 106 deletions
+4 -2
View File
@@ -1,6 +1,7 @@
<script>
<script lang="ts">
import { getJson } from "$lib/data";
import { removeMessage } from "$lib/snackbar"
import { Toast, ToastType } from "$lib/toast";
import { addToast } from "./store";
</script>
<style>
@@ -79,4 +80,5 @@
<h1>Unable to load portfolio overview data</h1>
</div>
</div>
{addToast(new Toast("Unable to load me.json", ToastType.Error, true, 3000))}
{/await}