diff --git a/components/AlgoliaSearch.tsx b/components/AlgoliaSearch.tsx index 8757a406f8c4..d7ccdcb52169 100644 --- a/components/AlgoliaSearch.tsx +++ b/components/AlgoliaSearch.tsx @@ -377,7 +377,7 @@ export function SearchButton({ useEffect(() => { if (typeof children === 'function') { setChildren(children({ actionKey })); - } else { + }else{ setChildren(children); } }, []);