Skip to content

Commit

Permalink
Fixing geo-fencing smore (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanWoodard authored Feb 11, 2024
1 parent 5d766e1 commit af17c3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion earn/src/components/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export type HeaderProps = {
export default function Header(props: HeaderProps) {
const { checkboxes } = props;
const { activeChain, setActiveChain } = useContext(ChainContext);
const isAllowed = useGeoFencing(activeChain);
const { isAllowed } = useGeoFencing(activeChain);
const navLinks: NavBarLink[] = [
...(isAllowed ? EXTENDED_NAV_LINKS : DEFAULT_NAV_LINKS),
// {
Expand Down
4 changes: 2 additions & 2 deletions prime/src/components/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export type HeaderProps = {
export default function Header(props: HeaderProps) {
const { checkboxes } = props;
const { activeChain, setActiveChain } = useContext(ChainContext);
const isAllowedToInteract = useGeoFencing(activeChain);
const { isAllowed: isAllowedToInteract } = useGeoFencing(activeChain);

return (
<Nav>
Expand All @@ -44,7 +44,7 @@ export default function Header(props: HeaderProps) {
activeChain={activeChain}
checkboxes={checkboxes}
setActiveChain={setActiveChain}
isAllowedToInteract={isAllowedToInteract.isAllowed}
isAllowedToInteract={isAllowedToInteract}
/>
</Nav>
);
Expand Down

0 comments on commit af17c3e

Please sign in to comment.