From cc10a40703af24cb8fe9e2fabb956239f5a0645e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxi=20Quo=C3=9F?= Date: Sun, 20 Feb 2022 10:49:51 +0100 Subject: [PATCH] fix visitor count --- frontend/src/components/Navbar.svelte | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/frontend/src/components/Navbar.svelte b/frontend/src/components/Navbar.svelte index 15fcad16..71262cb8 100644 --- a/frontend/src/components/Navbar.svelte +++ b/frontend/src/components/Navbar.svelte @@ -2,9 +2,6 @@ import store from '../store.js'; export let visitors; - let label = visitors === 1 ? "Visitor" : "Visitors"; - let icon = visitors === 1 ? "fa-user" : "fa-user-group"; - let addDevice = {} function updateDevice() { @@ -38,7 +35,7 @@
- {visitors} {label} + {visitors} {visitors === 1 ? "Visitor" : "Visitors"}