From fb3dcfc0da8fee2c016aece6e353e92a0903e5bd Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Thu, 4 Jan 2018 02:04:36 +0300 Subject: [PATCH] =?UTF-8?q?Fixes=20ACCOUNTS-3T3.=20=D0=92=20=D0=BF=D0=B5?= =?UTF-8?q?=D1=80=D0=B5=D0=BA=D0=BB=D1=8E=D1=87=D0=B0=D1=82=D0=B5=D0=BB?= =?UTF-8?q?=D0=B5=20=D1=8F=D0=B7=D1=8B=D0=BA=D0=BE=D0=B2,=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=20=D0=B2=D0=B2=D0=BE=D0=B4=D0=B5=20=D1=81=D0=B8=D0=BC?= =?UTF-8?q?=D0=B2=D0=BE=D0=BB=D0=BE=D0=B2,=20=D0=BE=D0=B1=D1=80=D0=B0?= =?UTF-8?q?=D0=B7=D1=83=D1=8E=D1=89=D0=B8=D1=85=20=D1=80=D0=B5=D0=B3=D1=83?= =?UTF-8?q?=D0=BB=D1=8F=D1=80=D0=BD=D0=BE=D0=B5=20=D0=B2=D1=8B=D1=80=D0=B0?= =?UTF-8?q?=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5,=20=D0=BF=D0=B0=D0=B4=D0=B0?= =?UTF-8?q?=D0=BB=D0=BE=20=D0=B8=D1=81=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/languageSwitcher/LanguageSwitcher.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/languageSwitcher/LanguageSwitcher.js b/src/components/languageSwitcher/LanguageSwitcher.js index 7024fab..e6f0b25 100644 --- a/src/components/languageSwitcher/LanguageSwitcher.js +++ b/src/components/languageSwitcher/LanguageSwitcher.js @@ -121,8 +121,8 @@ class LanguageSwitcher extends Component<{ const { langs } = this.props; const result = Object.keys(langs).reduce((previous, key) => { - if (langs[key].englishName.toLowerCase().search(filter) === -1 - && langs[key].name.toLowerCase().search(filter) === -1 + if (langs[key].englishName.toLowerCase().indexOf(filter) === -1 + && langs[key].name.toLowerCase().indexOf(filter) === -1 ) { return previous; }