From 477e76a0af2ada017c24305054075420e72d09ab Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Tue, 26 Nov 2024 21:59:15 -0500 Subject: [PATCH] Fix user identification in adventure filtering: update user primary key reference from 'pk' to 'uuid' in search page logic --- frontend/src/routes/search/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/search/+page.svelte b/frontend/src/routes/search/+page.svelte index c131802..83728fd 100644 --- a/frontend/src/routes/search/+page.svelte +++ b/frontend/src/routes/search/+page.svelte @@ -40,7 +40,7 @@ myAdventures = data.props.adventures; publicAdventures = data.props.adventures; - if (data.user?.pk != null) { + if (data.user?.uuid != null) { myAdventures = myAdventures.filter((adventure) => adventure.user_id === data.user?.uuid); } else { myAdventures = [];