mirror of
https://github.com/pockethost/pockethost.git
synced 2026-02-28 05:53:28 +00:00
fix: account confirmation TS errors
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { page } from '$app/stores'
|
||||
import { slide } from 'svelte/transition'
|
||||
import { client } from '$src/pocketbase-client'
|
||||
import { slide } from 'svelte/transition'
|
||||
|
||||
const { confirmVerification } = client()
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
|
||||
const handleLoad = async () => {
|
||||
try {
|
||||
if (!token) throw new Error(`token expected here`)
|
||||
|
||||
await confirmVerification(token)
|
||||
|
||||
// Refresh the app to get the latest info from the backend
|
||||
|
||||
Reference in New Issue
Block a user