Skip to content

Commit

Permalink
Merge pull request #585 from oasisprotocol/lw/fix-disable-search
Browse files Browse the repository at this point in the history
Fix disabling search if API is unreachable
  • Loading branch information
lukaw3d committed Jun 22, 2023
2 parents d80cd8b + 1e8bd91 commit 6b704a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changelog/585.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Differentiate user being offline and API being offline
2 changes: 1 addition & 1 deletion src/app/pages/HomePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const HomePage: FC = () => {
const infoAriaLabel = t('home.helpScreen.infoIconAria')
const { isMobile } = useScreenSize()
const { network } = useSearchQueryNetworkParam()
const isApiReachable = useIsApiReachable(network)
const isApiReachable = useIsApiReachable(network).reachable

const [searchHasFocus, setSearchHasFocus] = useState(false)
const [step, setStep] = useState<ParaTimeSelectorStep>(ParaTimeSelectorStep.EnableExplore)
Expand Down

0 comments on commit 6b704a4

Please sign in to comment.