Commit 78fe41e7 authored by Jonas Herrmannsdörfer's avatar Jonas Herrmannsdörfer Committed by Jonas Herrmansdsoerfer

Update examples/i18n-routing/app/[lang]/error.tsx

Co-authored-by: 's avatarvercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
parent 1c0c7630
...@@ -12,7 +12,7 @@ export default function Error({ ...@@ -12,7 +12,7 @@ export default function Error({
reset: () => void; reset: () => void;
}) { }) {
const params = useParams<{ lang: string }>(); const params = useParams<{ lang: string }>();
const dictionary = getErrorDictionary(params.lang); const dictionary = getErrorDictionary(params?.lang ?? "en");
useEffect(() => { useEffect(() => {
console.error(error); console.error(error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment