From 8cb03aa5c1ce225f0d90385636154dc45b2c7208 Mon Sep 17 00:00:00 2001 From: Clark Sell Date: Thu, 19 Oct 2023 19:24:10 -0500 Subject: [PATCH 1/2] fix: broken links --- .../(thatConferences)/_components/nav/NavHat.svelte | 6 +++--- src/_components/navigation/thatConference/NavHat.svelte | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/__MIGRATION_TBD__/__events copy__/(thatConferences)/_components/nav/NavHat.svelte b/__MIGRATION_TBD__/__events copy__/(thatConferences)/_components/nav/NavHat.svelte index f63c84c..8b502c9 100644 --- a/__MIGRATION_TBD__/__events copy__/(thatConferences)/_components/nav/NavHat.svelte +++ b/__MIGRATION_TBD__/__events copy__/(thatConferences)/_components/nav/NavHat.svelte @@ -13,21 +13,21 @@
- +
THAT Conference
From 8adb6b2ac941227e5650b6c0e569d50327893b71 Mon Sep 17 00:00:00 2001 From: Clark Sell Date: Thu, 19 Oct 2023 19:25:12 -0500 Subject: [PATCH 2/2] fix: #118 --- package.json | 2 +- src/lib/stores/favorites.js | 14 +++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 7d1a9dd..fb44eca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "thatconference.com", - "version": "5.1.4", + "version": "5.1.5", "description": "THATConference.com website", "main": "index.js", "type": "module", diff --git a/src/lib/stores/favorites.js b/src/lib/stores/favorites.js index a921569..2593865 100644 --- a/src/lib/stores/favorites.js +++ b/src/lib/stores/favorites.js @@ -1,6 +1,6 @@ import { writable } from 'svelte/store'; -import { page } from '$app/stores'; import { browser } from '$app/environment'; +import { page } from '$app/stores'; import favoritesQueryApi from '$dataSources/api.that.tech/me/favorites/queries'; import favoritesMutationsApi from '$dataSources/api.that.tech/me/favorites/mutations'; @@ -28,15 +28,11 @@ export async function toggle(sessionId, eventId) { return results; } -async function create() { - const initalValues = await get(); - favoritesStore.set(initalValues); -} - if (browser) { - page.subscribe((values) => { - if (values?.data?.user?.profile) { - create(); + page.subscribe(async (values) => { + if (values?.data?.user?.isAuthenticated) { + const initalValues = await get(); + favoritesStore.set(initalValues); } }); }