From 12bdfd66367fe59e78ff8e4fbcd30a560922e06b Mon Sep 17 00:00:00 2001 From: Arman Date: Mon, 5 Sep 2022 12:07:07 +0200 Subject: [PATCH] fix: remove await and userfetch --- src/routes/recover.svelte | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/routes/recover.svelte b/src/routes/recover.svelte index f638f29d1..35c74a772 100644 --- a/src/routes/recover.svelte +++ b/src/routes/recover.svelte @@ -3,14 +3,12 @@ import { Button, Form, FormItem, FormList, InputEmail } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForConsole } from '$lib/stores/sdk'; - import { user } from '$lib/stores/user'; import { Unauthenticated } from '$lib/layout'; let mail: string; const recover = async () => { try { - await sdkForConsole.account.createRecovery(mail, `${base}`); - user.fetchUser(); + sdkForConsole.account.createRecovery(mail, `${base}`); addNotification({ type: 'success', message: 'We have sent you an email with a password reset link' @@ -45,7 +43,8 @@ - + +