diff --git a/src/store/store.js b/src/store/store.js index 194c49c..a278c7f 100644 --- a/src/store/store.js +++ b/src/store/store.js @@ -252,7 +252,7 @@ class Store { }); } get decryptedAccountData() { - return decryptedData(this._accountData, this.accountFeatures, this.passPhrase, this.pubKey) + return decryptedData(this._accountData, this.accountFeatures, this.passPhrase, this.pubKey, this.processedFeatures) } get firstName() { diff --git a/src/utils/decryptedData.js b/src/utils/decryptedData.js index ee78f10..5d261f0 100644 --- a/src/utils/decryptedData.js +++ b/src/utils/decryptedData.js @@ -2,7 +2,7 @@ import {labelMap} from "../shared/labelMap"; import {statusMap} from "../shared/statusMap"; import {cryptography} from "@liskhq/lisk-client"; -export const decryptedData=(serverData, blockchainData, passPhrase, pubKey)=>{ +export const decryptedData=(serverData, blockchainData, passPhrase, pubKey, processedFeatures)=>{ const allAccountData=serverData.concat(blockchainData.filter(item=>!serverData.find(elem=>elem.label===item.label))) return allAccountData.map((elem) => { const initialData={ @@ -13,6 +13,12 @@ export const decryptedData=(serverData, blockchainData, passPhrase, pubKey)=>{ value: '', seed: '' } + if(processedFeatures[elem.label]) + return { + ...initialData, + status: statusMap.processed, + value: elem.value, + } if(!serverData.find(item=>item.label===elem.label)) { return { ...initialData,