+
{#if searchTerm}
+
+ {#if searchTerm.length >= 2 && results.length > 0}
+
+
+ {#each categories as cat}
+ {@const matchCount = searchQuotes(searchTerm, quotesStore.language).filter(
+ (q) => q.category === cat.name
+ ).length}
+ {#if matchCount > 0}
+
+ {/if}
+ {/each}
+
+ {/if}
+
{#if searchTerm.length >= 2}
{#if results.length === 0}
@@ -93,7 +155,11 @@
{#each results as quote (quote.id)}
-
+
{/each}
{/if}