From 52ace55db0cf0dccfcde506642597d28296a3c92 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Mon, 16 Sep 2019 22:59:45 +0100 Subject: [PATCH] Mobile: Remove empty sections from config screen --- ReactNativeClient/lib/components/screens/config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ReactNativeClient/lib/components/screens/config.js b/ReactNativeClient/lib/components/screens/config.js index 0c7f19548..493d538b9 100644 --- a/ReactNativeClient/lib/components/screens/config.js +++ b/ReactNativeClient/lib/components/screens/config.js @@ -269,6 +269,8 @@ class ConfigScreenComponent extends BaseScreenComponent { settingComps.push(this.renderButton('e2ee_config_button', _('Encryption Config'), this.e2eeConfig_)); } + if (!settingComps.length) return null; + return ( {this.renderHeader(section.name, Setting.sectionNameToLabel(section.name))}