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 2847820 commit 5f4ed19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 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.157",
"version": "3.0.158",
"main": "./dist/index.js",
"types": "./dist/index.d.js",
"files": [
Expand Down
12 changes: 1 addition & 11 deletions src/components/LogoPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
Expand Down

0 comments on commit 5f4ed19

Please sign in to comment.