diff options
| author | Adam Soltys <[email protected]> | 2022-10-05 12:38:06 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-10-05 12:38:06 -0700 |
| commit | e98337a5f0d0e1640016b685341264d9e552b4bb (patch) | |
| tree | f03d56702de5ed69afc352055c8a20c02d62669f /src/routes/+error.svelte | |
| parent | c8a9c7ac93f348df23c49776b576dfe25d09878d (diff) | |
| download | coinos-ui-e98337a5f0d0e1640016b685341264d9e552b4bb.tar.gz coinos-ui-e98337a5f0d0e1640016b685341264d9e552b4bb.zip | |
handle login/registration errors
Diffstat (limited to 'src/routes/+error.svelte')
| -rw-r--r-- | src/routes/+error.svelte | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/routes/+error.svelte b/src/routes/+error.svelte index 2fefcd81..d561b111 100644 --- a/src/routes/+error.svelte +++ b/src/routes/+error.svelte @@ -2,6 +2,7 @@ import { page } from '$app/stores'; import { Icon, PageNotFound } from '$comp'; import { t } from '$lib/translations'; + import { back } from '$lib/utils'; export let data; let { user } = data; @@ -17,10 +18,9 @@ <p class="px-1 break-all mb-8">{$page.error.message}</p> - <a href={`/${user.username}/dashboard`}> - <button class="rounded-full bg-black text-white py-2 px-5 font-bold hover:opacity-80 mb-2" - >Go Home</button - > - </a> + <button + class="rounded-full bg-black text-white py-2 px-5 font-bold hover:opacity-80 mb-2" + on:click={back}>Back</button + > </div> {/if} |
