Skip to content

Commit 1a080cd

Browse files
committed
Fixed: UI of the match product modal on different scenarios (#528)
1 parent 7c809e3 commit 1a080cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/MatchProductModal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<ion-label>{{ translate("Searching for", { queryString }) }}</ion-label>
1818
</div>
1919

20-
<template v-else-if="products.length">
20+
<template v-else-if="isSearching && products.length">
2121
<ion-radio-group v-model="selectedProductId">
2222
<ion-item v-for="product in products" :key="product.productId">
2323
<ion-thumbnail slot="start">
@@ -41,7 +41,7 @@
4141
</ion-radio-group>
4242
</template>
4343

44-
<div v-else-if="queryString && isSearching && !products.length" class="empty-state">
44+
<div v-else-if="prevSearchedQuery && isSearching && !products.length" class="empty-state">
4545
<p>{{ translate("No results found for", { queryString: prevSearchedQuery }) }}</p>
4646
</div>
4747
<div v-else class="empty-state">

0 commit comments

Comments
 (0)