Skip to content

Commit

Permalink
Merge pull request #836 from ensdomains/fix/FET-1618
Browse files Browse the repository at this point in the history
FET-1618 Flash of translation mappings on 404 page
  • Loading branch information
sugh01 authored Sep 11, 2024
2 parents 1c7adff + 0ff0f7d commit 727b4f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/@atoms/ErrorScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ const LinkWrapper = ({ children }: { children?: React.ReactNode }) => (
type ErrorType = 'not-found' | 'application-error'

const ErrorScreen = ({ errorType }: { errorType: ErrorType }) => {
const { t } = useTranslation('error', { keyPrefix: errorType })
const { t, ready } = useTranslation('error', { keyPrefix: errorType })

if (!ready) {
return null
}

return (
<Container className={errorType}>
Expand Down

0 comments on commit 727b4f9

Please sign in to comment.