diff --git a/package.json b/package.json index 1ce70a28..d1feebd0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@yearn-finance/web-lib", - "version": "3.0.139", + "version": "3.0.140", "main": "./dist/index.js", "types": "./dist/index.d.js", "files": [ diff --git a/src/components/LogoPopover.tsx b/src/components/LogoPopover.tsx index 7dfe6500..3528ea34 100644 --- a/src/components/LogoPopover.tsx +++ b/src/components/LogoPopover.tsx @@ -101,6 +101,9 @@ export function LogoPopover(): ReactElement { 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);