diff --git a/package.json b/package.json index 48b0296b..d7953d1e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@yearn-finance/web-lib", - "version": "3.0.157", + "version": "3.0.158", "main": "./dist/index.js", "types": "./dist/index.d.js", "files": [ diff --git a/src/components/LogoPopover.tsx b/src/components/LogoPopover.tsx index c68ef9c5..d73316a1 100644 --- a/src/components/LogoPopover.tsx +++ b/src/components/LogoPopover.tsx @@ -72,21 +72,11 @@ export function LogoPopover(): ReactElement { // eslint-disable-next-line react-hooks/exhaustive-deps }, [typeof window]); - const isYearnFi = useMemo(() => { - return currentHost === 'yearn.fi' || currentHost.includes('localhost:'); - }, [currentHost]); - const currentApp = useMemo(() => { return Object.values(APPS).find(({host}): boolean => { - if (isYearnFi) { - if (typeof window === 'undefined') { - return false; - } - return window.location.pathname.includes(host); - } return currentHost.includes(host); }); - }, [currentHost, isYearnFi]); + }, [currentHost]); return ( <>