From bf21fbb4efac6846dd4b199905622c166df97443 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 27 Aug 2023 01:41:31 -0700
Subject: feat(layout): username loading

---
 src/routes/+layout.svelte | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/routes/+layout.svelte')

diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index d4a62fb8..01ede9e0 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -6,13 +6,13 @@
 
 	export let data;
 
-	let currentUserIdentity = { name: '', id: -1 };
+	let currentUserIdentity = { name: '...', id: -1 };
 	let lastActivityWasToday = true;
 
 	onMount(async () => {
 		if (data.user !== undefined) {
 			currentUserIdentity = await userIdentity(data.user);
-			currentUserIdentity.name = `(${currentUserIdentity.name})`;
+			currentUserIdentity.name = `${currentUserIdentity.name}`;
 			lastActivityWasToday =
 				(await lastActivityDate(currentUserIdentity)).toDateString() === new Date().toDateString();
 		}
@@ -29,7 +29,7 @@
 		>Log in with AniList</a
 	>
 {:else}
-	<a href="/authentication/log-out">Log out from AniList {currentUserIdentity.name}</a>
+	<a href="/authentication/log-out">Log out from AniList ({currentUserIdentity.name})</a>
 {/if}
 
 {#if !lastActivityWasToday}
-- 
cgit v1.2.3

