diff options
Diffstat (limited to 'src/containers')
-rw-r--r-- | src/containers/settings/EditServiceScreen.tsx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/containers/settings/EditServiceScreen.tsx b/src/containers/settings/EditServiceScreen.tsx index ba8f374c3..0c7e3aa07 100644 --- a/src/containers/settings/EditServiceScreen.tsx +++ b/src/containers/settings/EditServiceScreen.tsx | |||
@@ -153,8 +153,6 @@ class EditServiceScreen extends Component<EditServicesScreenProps> { | |||
153 | 153 | ||
154 | const { stores } = this.props; | 154 | const { stores } = this.props; |
155 | 155 | ||
156 | const { action } = stores.router.pathValue; | ||
157 | |||
158 | let defaultSpellcheckerLanguage = | 156 | let defaultSpellcheckerLanguage = |
159 | SPELLCHECKER_LOCALES[stores.settings.app.spellcheckerLanguage]; | 157 | SPELLCHECKER_LOCALES[stores.settings.app.spellcheckerLanguage]; |
160 | 158 | ||
@@ -190,10 +188,7 @@ class EditServiceScreen extends Component<EditServicesScreenProps> { | |||
190 | }, | 188 | }, |
191 | isHibernationEnabled: { | 189 | isHibernationEnabled: { |
192 | label: intl.formatMessage(messages.enableHibernation), | 190 | label: intl.formatMessage(messages.enableHibernation), |
193 | value: | 191 | value: service?.isHibernationEnabled, |
194 | action !== 'edit' | ||
195 | ? recipe.autoHibernate | ||
196 | : service?.isHibernationEnabled, | ||
197 | default: DEFAULT_SERVICE_SETTINGS.isHibernationEnabled, | 192 | default: DEFAULT_SERVICE_SETTINGS.isHibernationEnabled, |
198 | }, | 193 | }, |
199 | isWakeUpEnabled: { | 194 | isWakeUpEnabled: { |