diff --git a/examples/with-react-intl/pages/_app.js b/examples/with-react-intl/pages/_app.js index 7fcc17ef..2e7cc5e1 100644 --- a/examples/with-react-intl/pages/_app.js +++ b/examples/with-react-intl/pages/_app.js @@ -22,7 +22,7 @@ export default class MyApp extends App { // Get the `locale` and `messages` from the request object on the server. // In the browser, use the same values that the server serialized. const { req } = ctx - const { locale, messages } = req || window.__NEXT_DATA__.props.pageProps + const { locale, messages } = req || window.__NEXT_DATA__.props return { pageProps, locale, messages } }