Skip to content

Commit

Permalink
remove effect
Browse files Browse the repository at this point in the history
  • Loading branch information
jonator committed Oct 8, 2024
1 parent 72712de commit 2ddda4c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions packages/web/next-seo.config.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { DefaultSeo, DefaultSeoProps } from "next-seo";
import { useEffect, useState } from "react";

import { useTranslation } from "~/hooks";
import spriteSVGURL from "~/public/icons/sprite.svg";
Expand All @@ -15,12 +14,6 @@ const SEO_VALUES = {
export const SEO: React.FC = () => {
const { t } = useTranslation();

const [shortcutIcon, setShortcutIcon] = useState<string>("");

useEffect(() => {
setShortcutIcon(`${window?.origin || ""}/osmosis-logo-wc.png`);
}, []);

const config: DefaultSeoProps = {
title: t("seo.default.title"),
description: t("seo.default.description"),
Expand All @@ -32,7 +25,10 @@ export const SEO: React.FC = () => {
},
{
rel: "shortcut icon",
href: shortcutIcon,
href:
typeof window !== "undefined"
? `${window?.origin || ""}/osmosis-logo-wc.png`
: "",
},
{
rel: "preload",
Expand Down

0 comments on commit 2ddda4c

Please sign in to comment.