File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -55,11 +55,14 @@ export type FooterProps = {
55
55
}
56
56
57
57
const Footer = ( { lastDeployDate } : FooterProps ) => {
58
- const { locale } = useRouter ( )
58
+ const { asPath , locale } = useRouter ( )
59
59
const { t } = useTranslation ( "common" )
60
60
61
61
// TODO: check if `medBp` is being used or remove it
62
62
const [ medBp ] = useToken ( "breakpoints" , [ "md" ] )
63
+
64
+ const is500Page = asPath . includes ( "/500" )
65
+
63
66
const linkSections : Array < LinkSection > = [
64
67
{
65
68
title : t ( "use-ethereum" ) ,
@@ -298,10 +301,12 @@ const Footer = ({ lastDeployDate }: FooterProps) => {
298
301
alignItems = "center"
299
302
flexWrap = "wrap"
300
303
>
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
+ ) }
305
310
< Box my = { 4 } >
306
311
{ socialLinks . map ( ( link , idk ) => {
307
312
return (
You can’t perform that action at this time.
0 commit comments