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; });