aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/AppHeader.svelte3
-rw-r--r--src/components/RegisterOrLogin.svelte1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/components/AppHeader.svelte b/src/components/AppHeader.svelte
index bbe2e05e..3f8e7e87 100644
--- a/src/components/AppHeader.svelte
+++ b/src/components/AppHeader.svelte
@@ -1,6 +1,7 @@
<script>
// we will want to dynamically use the users avatar on this screen if they have uploaded one
+ import { user } from "$lib/store";
import { goto } from '$app/navigation';
import { Icon } from '$comp';
</script>
@@ -14,7 +15,7 @@
><Icon icon="clock" style="mx-auto" /></button
>
<button class="bg-white p-2 rounded-full w-12 h-12"
- ><Icon icon="profile" style="mx-auto" /></button
+ ><Icon icon="profile" style="mx-auto" /> {$user.username}</button
>
<button class="bg-white p-2 rounded-full w-12 h-12"
><Icon icon="menu" style="mx-auto" /></button
diff --git a/src/components/RegisterOrLogin.svelte b/src/components/RegisterOrLogin.svelte
index 15be60cf..b42b8d7f 100644
--- a/src/components/RegisterOrLogin.svelte
+++ b/src/components/RegisterOrLogin.svelte
@@ -21,7 +21,6 @@
let r = await post(url, { username, password });
if (!r.token) r = await post('/login', { username, password });
$token = r.token;
- console.log('new token', r.token);
auth();
goto('/receive');
};