fix: filter products at top level

This commit is contained in:
Vlad Stan 2023-07-14 11:12:26 +03:00
parent 50b8c654ae
commit 3a94405124
3 changed files with 15 additions and 26 deletions

View file

@ -277,7 +277,7 @@
:products="filterProducts" :stall-products="products.filter(p => p.stall_id == activeStall)"
:product-detail="activeProduct" :relays="relays" :account="account" :pool="pool" :styles="config?.opts ?? {}"
@login-dialog="openAccountDialog" @change-page="navigateTo" @add-to-cart="addProductToCart"></customer-stall>
<customer-market v-else :search-nostr="searchNostr" :relays="relays" :products="products"
<customer-market v-else :search-nostr="searchNostr" :relays="relays" :filtered-products="filterProducts"
:search-text="searchText" :filter-categories="filterCategories" :styles="config?.opts ?? {}"
@change-page="navigateTo" @update-data="updateData" @add-to-cart="addProductToCart"></customer-market>
</div>