From 5f4ed197b2ccfb521db784e06b9a642e5165126c Mon Sep 17 00:00:00 2001 From: Majorfi Date: Fri, 9 Feb 2024 16:10:33 +0100 Subject: [PATCH] build: bump --- package.json | 2 +- src/components/LogoPopover.tsx | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) 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 ( <>