Stop app blowing up on refresh on settings page

This commit is contained in:
6ea86b96 2017-07-26 15:20:18 +07:00
parent 4f068afa98
commit 6eb9c5cc66
No known key found for this signature in database
GPG key ID: B282D183E4931E8F

View file

@ -122,7 +122,7 @@ class SettingsPage extends React.PureComponent {
render() {
const { daemonSettings } = this.props;
if (!daemonSettings) {
if (!daemonSettings || Object.keys(daemonSettings).length === 0) {
return (
<main className="main--single-column">
<span className="empty">{__("Failed to load settings.")}</span>