From 7da22287ff00b9403d2458b486c5289e7b389415 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Sat, 21 Aug 2021 10:23:59 +0200 Subject: [PATCH] Removed length check --- src/routes/links.svelte | 2 +- src/routes/visits.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/links.svelte b/src/routes/links.svelte index f4fa1e3..a228acf 100644 --- a/src/routes/links.svelte +++ b/src/routes/links.svelte @@ -8,7 +8,7 @@ // Yes i know this isn't the best way to implement this, but linkylinky dashboard is just a oneshot sideproject r/n. const unsubscribe = UserStore.subscribe((value) => { - if (value.isLoggedIn && urls.length == 0) { + if (value.isLoggedIn) { urlQuery = Apiclient.getUrls().then((res) => { urls = res; }); diff --git a/src/routes/visits.svelte b/src/routes/visits.svelte index 1fda162..009ef2c 100644 --- a/src/routes/visits.svelte +++ b/src/routes/visits.svelte @@ -8,7 +8,7 @@ // Yes i know this isn't the best way to implement this, but linkylinky dashboard is just a oneshot sideproject r/n. const unsubscribe = UserStore.subscribe((value) => { - if (value.isLoggedIn && visits.length == 0) { + if (value.isLoggedIn) { visitQuery = Apiclient.getVisits().then((res) => { visits = res; });