From cf44f240b10a0506fb45f54df65dddb3a856c603 Mon Sep 17 00:00:00 2001 From: Nouman Tahir Date: Wed, 4 Aug 2021 13:52:53 +0500 Subject: [PATCH] dark mode logic fix --- src/screens/application/container/applicationContainer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/application/container/applicationContainer.js b/src/screens/application/container/applicationContainer.js index 7a74e5d33..997faa1cc 100644 --- a/src/screens/application/container/applicationContainer.js +++ b/src/screens/application/container/applicationContainer.js @@ -722,7 +722,7 @@ class ApplicationContainer extends Component { if (settings) { const isDarkMode = false; //useDarkMode(); - dispatch(isDarkTheme(settings.isDarkTheme === null ? isDarkMode : settings.isDarkTheme)); + dispatch(isDarkTheme(settings.isDarkTheme !== null ? settings.isDarkTheme : isDarkMode)); this.setState({ isThemeReady: true, });