Skip to content

Commit

Permalink
fix: Retrieving TP by id (#3194)
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio authored Sep 30, 2024
1 parent 8a01e00 commit 7e9c1f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/location/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ export const getSelectedItemId = (state: RootState) => {
const items = isReviewingTPCollection ? allItems.filter(item => item.isPublished) : allItems
return getFirstWearableOrItem(items)?.id ?? null
}
export const getSelectedCollectionId = (state: RootState) => new URLSearchParams(getSearch(state)).get('collection')
export const getSelectedCollectionId = (state: RootState) =>
new URLSearchParams(getSearch(state)).get('collection') ?? new URLSearchParams(getSearch(state)).get('collectionId')
export const isReviewing = (state: RootState) => !!new URLSearchParams(getSearch(state)).get('reviewing')

export const ensNameMatchSelector = createMatchSelector<
Expand Down

0 comments on commit 7e9c1f7

Please sign in to comment.