diff --git a/src/components/MatchProductModal.vue b/src/components/MatchProductModal.vue index e410bbfe..c35746c9 100644 --- a/src/components/MatchProductModal.vue +++ b/src/components/MatchProductModal.vue @@ -10,7 +10,7 @@ - +
@@ -41,8 +41,8 @@ -
-

{{ translate("No results found for", { queryString: prevSearchedQuery }) }}

+
+

{{ translate("No results found for", { queryString }) }}

empty-state @@ -95,7 +95,6 @@ let queryString = ref(''); const isSearching = ref(false); const selectedProductId = ref("") as Ref; const isLoading = ref(false); -const prevSearchedQuery = ref(""); async function handleSearch() { if(!queryString.value.trim()) { @@ -121,7 +120,6 @@ async function getProducts() { logger.error("Failed to fetch products", err) } products.value = productsList - prevSearchedQuery.value = queryString.value isLoading.value = false; } function closeModal(payload = {}) {