From 656c872aada2d4077bc758d9e890f9dfe59aefb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sat, 26 Jun 2021 15:15:31 +0200 Subject: [PATCH] cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/features/about/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/soapbox/features/about/index.js b/app/soapbox/features/about/index.js index fcd400d64..b6892fdfc 100644 --- a/app/soapbox/features/about/index.js +++ b/app/soapbox/features/about/index.js @@ -50,8 +50,13 @@ class AboutPage extends ImmutablePureComponent { const { locale: prevStateLocale } = prevState; const { slug } = match.params; const { slug: prevSlug } = prevProps.match.params; + if (locale !== prevLocale) this.setState({ locale }); - if (slug !== prevSlug || stateLocale !== prevStateLocale || (!prevAboutPages.get(slug || 'about') && aboutPages.get(slug || 'about'))) + if ( + slug !== prevSlug || + stateLocale !== prevStateLocale || + (!prevAboutPages.get(slug || 'about') && aboutPages.get(slug || 'about')) + ) this.loadPageHtml(); }