fix: handle undefined search engine name in placeholder
This commit is contained in:
parent
55b8298e69
commit
9627ccc840
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@ export default () => {
|
||||||
<input
|
<input
|
||||||
class="form-control me-2"
|
class="form-control me-2"
|
||||||
type="search"
|
type="search"
|
||||||
placeholder={`Search with ${localStorage.getItem("searchEngineName")}`}
|
placeholder={`Search with ${localStorage.getItem("searchEngineName") || ""
|
||||||
|
}`}
|
||||||
aria-label="Search with Google"
|
aria-label="Search with Google"
|
||||||
name="q"
|
name="q"
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Reference in a new issue