Skip to content

Commit

Permalink
Autopush env bug fix. (#4696)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmechali authored Oct 31, 2024
1 parent d003bff commit 21ef43c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ const NlSearchBarHeaderInline = ({
const urlParams = new URLSearchParams(window.location.search);
const isAutopushEnv = window.location.hostname == "autopush.datacommons.org";
const enableAutoComplete =
isAutopushEnv || urlParams.has("ac_on")
? urlParams.get("ac_on") == "true"
: false;
isAutopushEnv ||
(urlParams.has("ac_on") && urlParams.get("ac_on") == "true");

return (
<div className="header-search-section">
Expand Down

0 comments on commit 21ef43c

Please sign in to comment.