fix(prefs): Guard against null account in preferences window

This commit is contained in:
Ben Gotow 2015-10-26 10:22:01 -07:00
parent 69872ca1a6
commit 09ed1ea415

View file

@ -27,7 +27,7 @@ class PreferencesGeneral extends React.Component
event.preventDefault()
_renderImportanceOptionElement: =>
return false unless AccountStore.current().usesImportantFlag()
return false unless AccountStore.current()?.usesImportantFlag()
importanceOptionElement = <div className="section-header">
<input type="checkbox" id="show-important"
checked={@props.config.get('core.showImportant')}