Commit bc32ed58 authored by Dan Notestein's avatar Dan Notestein
Browse files

Merge branch 'fix-profile-settings-for-witness' into 'develop'

Fix witness description and witness owner fields not showing in settings page

See merge request !158
parents b40e12f6 59742163
$theme-map: null;
$themes: (
original: (
colorAccent: $color-blue,
......
......@@ -502,6 +502,7 @@ class Settings extends React.Component {
isOwnAccount,
user_preferences,
follow,
metaData,
} = this.props;
const { submitting, valid, touched } = this.state.accountSettings;
......@@ -1054,7 +1055,7 @@ function read_profile_v2(account) {
// use new `posting_json_md` if {version: 2} is present
let md = o2j.ifStringParseJSON(account.get('posting_json_metadata'));
if (md && md.profile && md.profile.account_is_witness) {
if (md && md.profile) {
md.profile.account_is_witness = accountIsWitness;
}
if (md && md.profile && md.profile.version) return md;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment