Skip to content

Commit

Permalink
build: bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Feb 9, 2024
1 parent 5f4ed19 commit 324554a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yearn-finance/web-lib",
"version": "3.0.158",
"version": "3.0.159",
"main": "./dist/index.js",
"types": "./dist/index.d.js",
"files": [
Expand Down
6 changes: 4 additions & 2 deletions src/components/LogoPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {motion} from 'framer-motion';
import {cl} from '@builtbymom/web3/utils';
import {Popover, Transition} from '@headlessui/react';

import {useIsMounted} from '../hooks/useIsMounted';
import {V3Logo} from '../icons/V3Logo';
import {APPS} from './YearnApps';

Expand Down Expand Up @@ -63,14 +64,15 @@ function Logo(): ReactElement {

export function LogoPopover(): ReactElement {
const [isShowing, set_isShowing] = useState(false);
const isMounted = useIsMounted();

const currentHost = useMemo(() => {
if (typeof window === 'undefined') {
return 'yearn.fi';
return '';
}
return window.location.host;
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [typeof window]);
}, [typeof window, isMounted]);

const currentApp = useMemo(() => {
return Object.values(APPS).find(({host}): boolean => {
Expand Down

0 comments on commit 324554a

Please sign in to comment.