Skip to content

Commit

Permalink
chore: category data reset on customer right (#865)
Browse files Browse the repository at this point in the history
  • Loading branch information
abocsan-plenty authored Dec 5, 2024
1 parent 186aa33 commit cdbe86f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/web/composables/useProducts/useProducts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const useProducts: UseProductsReturn = (category = '') => {

if (data.value?.data) {
if (categoryGetters.hasCustomerRight(data.value?.data.category) && !isAuthorized.value) {
state.value.data = {} as Facet;
await navigateTo(localePath(paths.authLogin));
return state.value.data;
}
Expand Down

0 comments on commit cdbe86f

Please sign in to comment.