Skip to content

Commit

Permalink
use value for client side routes (#980)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlgimenes authored Oct 5, 2021
1 parent 986c884 commit 714c40d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/store-api/src/platforms/vtex/utils/facets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const transformSelectedFacet = ({ key, value }: SelectedFacet) => {
return { key: 'trade-policy', value }

case 'slug':
return { key: 'id', value: getIdFromSlug(key) }
return { key: 'id', value: getIdFromSlug(value) }

default:
return { key, value }
Expand Down

0 comments on commit 714c40d

Please sign in to comment.