Skip to content

Commit

Permalink
Fix user identification in adventure filtering: update user primary k…
Browse files Browse the repository at this point in the history
…ey reference from 'pk' to 'uuid' in search page logic
  • Loading branch information
seanmorley15 committed Nov 27, 2024
1 parent f878167 commit 477e76a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/routes/search/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit 477e76a

Please sign in to comment.