From 80a130d9a813c57e227e7840326af9c03784941e Mon Sep 17 00:00:00 2001 From: Spectralitree <72747870+Spectralitree@users.noreply.github.com> Date: Mon, 20 Dec 2021 07:57:59 +0100 Subject: [PATCH] fix: public title with no system name --- src/pages/profiles/Main.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/profiles/Main.svelte b/src/pages/profiles/Main.svelte index 5c5e1142..b99b13ec 100644 --- a/src/pages/profiles/Main.svelte +++ b/src/pages/profiles/Main.svelte @@ -34,7 +34,7 @@ try { let res: Sys = await api.getSystem({id: id}) user = res; - title = user.name; + title = user.name ? user.name : "system"; } catch (error) { console.log(error); err = error.message;