diff --git a/src/react-components/ui-root.js b/src/react-components/ui-root.js index 2da340733544e0890efb11c62b223ae005f7ff14..fe99b50763f2aa4d7cc9394b8a8ecd19565754bf 100644 --- a/src/react-components/ui-root.js +++ b/src/react-components/ui-root.js @@ -719,11 +719,7 @@ class UIRoot extends Component { id="subscribe" type="checkbox" onChange={this.onSubscribeChanged} - checked={ - typeof this.state.isSubscribed === "undefined" - ? this.props.initialIsSubscribed - : this.state.isSubscribed - } + checked={this.state.isSubscribed === undefined ? this.props.initialIsSubscribed : this.state.isSubscribed} /> <label htmlFor="subscribe"> <FormattedMessage id="entry.notify_me" />