From 9ebf34fca9bbfddef265956a27e4b367a495e987 Mon Sep 17 00:00:00 2001 From: keplyx Date: Sun, 8 Mar 2020 15:33:29 +0100 Subject: [PATCH] Improved section headers --- screens/Proxiwash/ProxiwashScreen.js | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/screens/Proxiwash/ProxiwashScreen.js b/screens/Proxiwash/ProxiwashScreen.js index c832904..5ae43c1 100644 --- a/screens/Proxiwash/ProxiwashScreen.js +++ b/screens/Proxiwash/ProxiwashScreen.js @@ -387,12 +387,12 @@ export default class ProxiwashScreen extends React.Component { } getRenderSectionHeader({section}: Object) { - const subtitle = this.getMachineAvailableNumber(section.title === i18n.t('proxiwashScreen.dryers')) + ' ' + i18n.t('proxiwashScreen.numAvailable'); + const isDryer = section.title === i18n.t('proxiwashScreen.dryers'); + const subtitle = this.getMachineAvailableNumber(isDryer) + ' ' + i18n.t('proxiwashScreen.numAvailable'); return ( { } /> );