Commit 59742163 authored by Quoc Huy Nguyen Dinh's avatar Quoc Huy Nguyen Dinh
Browse files

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

parent b40e12f6
$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