aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/todos/store.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/todos/store.js')
-rw-r--r--src/features/todos/store.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/features/todos/store.js b/src/features/todos/store.js
index e5a26ae04..b5228191c 100644
--- a/src/features/todos/store.js
+++ b/src/features/todos/store.js
@@ -206,8 +206,10 @@ export default class TodoStore extends FeatureStore {
206 @action _toggleTodosFeatureVisibility = () => { 206 @action _toggleTodosFeatureVisibility = () => {
207 debug('_toggleTodosFeatureVisibility'); 207 debug('_toggleTodosFeatureVisibility');
208 208
209 const isFeatureEnabled = !this.settings.isFeatureEnabledByUser;
209 this._updateSettings({ 210 this._updateSettings({
210 isFeatureEnabledByUser: !this.settings.isFeatureEnabledByUser, 211 isFeatureEnabledByUser: isFeatureEnabled,
212 isTodosPanelVisible: isFeatureEnabled,
211 }); 213 });
212 }; 214 };
213 215