dark mode logic fix

This commit is contained in:
Nouman Tahir 2021-08-04 13:52:53 +05:00
parent 698c7c5b07
commit cf44f240b1

View File

@ -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,
});