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
|
||||
class="form-control me-2"
|
||||
type="search"
|
||||
placeholder={`Search with ${localStorage.getItem("searchEngineName")}`}
|
||||
placeholder={`Search with ${localStorage.getItem("searchEngineName") || ""
|
||||
}`}
|
||||
aria-label="Search with Google"
|
||||
name="q"
|
||||
/>
|
||||
|
|
Loading…
Add table
Reference in a new issue