fix(search): update no results to be a (#721)

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
Aaron Pham 2024-01-23 13:53:28 -05:00 committed by GitHub
parent c9ac2a7507
commit eb302c05b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -239,10 +239,10 @@ document.addEventListener("nav", async (e: unknown) => {
removeAllChildren(results)
if (finalResults.length === 0) {
results.innerHTML = `<button class="result-card">
results.innerHTML = `<a class="result-card">
<h3>No results.</h3>
<p>Try another search term?</p>
</button>`
</a>`
} else {
results.append(...finalResults.map(resultToHTML))
}