diff --git a/src/providers/steem/auth.js b/src/providers/steem/auth.js index bcdcfb77c..485bc365b 100644 --- a/src/providers/steem/auth.js +++ b/src/providers/steem/auth.js @@ -64,8 +64,7 @@ export const login = async (username, password, isPinCodeOpen) => { let jsonMetadata; try { - jsonMetadata = - JSON.parse(account.posting_json_metadata) || JSON.parse(account.json_metadata) || ''; + jsonMetadata = JSON.parse(account.posting_json_metadata) || ''; } catch (err) { jsonMetadata = ''; } @@ -124,8 +123,7 @@ export const loginWithSC2 = async (code, isPinCodeOpen) => { return new Promise(async (resolve, reject) => { let jsonMetadata; try { - jsonMetadata = - JSON.parse(account.posting_json_metadata) || JSON.parse(account.json_metadata) || ''; + jsonMetadata = JSON.parse(account.posting_json_metadata) || ''; if (Object.keys(jsonMetadata).length !== 0) { avatar = jsonMetadata.profile.profile_image || ''; } diff --git a/src/providers/steem/dsteem.js b/src/providers/steem/dsteem.js index 5f7b7f893..3edfdac66 100644 --- a/src/providers/steem/dsteem.js +++ b/src/providers/steem/dsteem.js @@ -201,11 +201,9 @@ export const getUser = async (user) => { get(globalProperties, 'total_vesting_fund_steem', globalProperties.total_vesting_fund_hive), ); - if (has(_account, 'posting_json_metadata') || has(_account, 'json_metadata')) { + if (has(_account, 'posting_json_metadata')) { try { - _account.about = - JSON.parse(get(_account, 'posting_json_metadata')) || - JSON.parse(get(_account, 'json_metadata')); + _account.about = JSON.parse(get(_account, 'posting_json_metadata')); } catch (e) { //alert(e); _account.about = {};