diff options
| author | secondl1ght <[email protected]> | 2022-08-02 13:46:29 -0600 |
|---|---|---|
| committer | secondl1ght <[email protected]> | 2022-08-02 13:46:29 -0600 |
| commit | 4cc7caae08eecbd1a07a6f7944779d69e5747b20 (patch) | |
| tree | 5ac125741f8b4fd9073c0377502beb0571c75f16 /src/components/RegisterOrLogin.svelte | |
| parent | ea8b108c5d120126a806cea1f875a7bb59a7a455 (diff) | |
| download | coinos-ui-4cc7caae08eecbd1a07a6f7944779d69e5747b20.tar.gz coinos-ui-4cc7caae08eecbd1a07a6f7944779d69e5747b20.zip | |
update toast message and hide menu onclick
Diffstat (limited to 'src/components/RegisterOrLogin.svelte')
| -rw-r--r-- | src/components/RegisterOrLogin.svelte | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/RegisterOrLogin.svelte b/src/components/RegisterOrLogin.svelte index 157c2821..eade96d8 100644 --- a/src/components/RegisterOrLogin.svelte +++ b/src/components/RegisterOrLogin.svelte @@ -1,7 +1,6 @@ <script> - import { toast } from '@zerodevx/svelte-toast'; import { Icon } from '$comp'; - import { post } from '$lib/utils'; + import { post, failure } from '$lib/utils'; import { user, token } from '$lib/store'; import { auth } from '$lib/socket'; import { goto } from '$app/navigation'; @@ -26,7 +25,7 @@ auth(); } catch (e) { if (!e.message) e.message = 'Login failed'; - toast.push(e.message); + failure(e.message); } }; |
