Skip to content

Commit 57eb586

Browse files
committed
debug: patch page warnings
Temporary fix for `Export encountered errors on following paths: /_error: /500`
1 parent 47d9a90 commit 57eb586

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/components/Footer.tsx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,14 @@ export type FooterProps = {
5555
}
5656

5757
const Footer = ({ lastDeployDate }: FooterProps) => {
58-
const { locale } = useRouter()
58+
const { asPath, locale } = useRouter()
5959
const { t } = useTranslation("common")
6060

6161
// TODO: check if `medBp` is being used or remove it
6262
const [medBp] = useToken("breakpoints", ["md"])
63+
64+
const is500Page = asPath.includes("/500")
65+
6366
const linkSections: Array<LinkSection> = [
6467
{
6568
title: t("use-ethereum"),
@@ -298,10 +301,12 @@ const Footer = ({ lastDeployDate }: FooterProps) => {
298301
alignItems="center"
299302
flexWrap="wrap"
300303
>
301-
<Box color="text200">
302-
<Translation id="website-last-updated" />:{" "}
303-
{getLocaleTimestamp(locale as Lang, lastDeployDate!)}
304-
</Box>
304+
{!is500Page && (
305+
<Box color="text200">
306+
<Translation id="website-last-updated" />:{" "}
307+
{getLocaleTimestamp(locale as Lang, lastDeployDate!)}
308+
</Box>
309+
)}
305310
<Box my={4}>
306311
{socialLinks.map((link, idk) => {
307312
return (

0 commit comments

Comments
 (0)