added toast on account detail update success

pull/3/head
TZGyn 2 years ago
parent 91334708c7
commit 574f66d6c8
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -6,6 +6,7 @@
import Button from '$lib/components/ui/button/button.svelte' import Button from '$lib/components/ui/button/button.svelte'
import { Loader2 } from 'lucide-svelte' import { Loader2 } from 'lucide-svelte'
import { invalidateAll } from '$app/navigation' import { invalidateAll } from '$app/navigation'
import { toast } from 'svelte-sonner'
export let data: PageData export let data: PageData
@ -30,6 +31,7 @@
const body = await response.json() const body = await response.json()
if (body.success) { if (body.success) {
toast.success('Account Details Updated')
await invalidateAll() await invalidateAll()
} }

Loading…
Cancel
Save