From 954fcb9674114bf071063fac2ddb8d6b1f1da9d8 Mon Sep 17 00:00:00 2001 From: Ivan Starkov Date: Mon, 3 Sep 2018 00:53:43 +0300 Subject: [PATCH] Fix react-intl example (#4840) react-intl does not work otherwise --- examples/with-react-intl/pages/_app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }