From ac4c51b4418559d1b1b3bd11bc4c7fa170e11d9f Mon Sep 17 00:00:00 2001 From: Peter Velkov Date: Thu, 5 Aug 2021 13:43:55 +0300 Subject: [PATCH] Fix: incorrect prop name passed for locale --- src/components/withLocalize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/withLocalize.js b/src/components/withLocalize.js index a5fbb53e57de..0a6797ff027c 100755 --- a/src/components/withLocalize.js +++ b/src/components/withLocalize.js @@ -56,7 +56,7 @@ class LocaleContextProvider extends React.Component { timestampToDateTime: this.timestampToDateTime.bind(this), fromLocalPhone: this.fromLocalPhone.bind(this), toLocalPhone: this.toLocalPhone.bind(this), - locale: this.props.preferredLocale, + preferredLocale: this.props.preferredLocale, }; }