fix processed status
This commit is contained in:
@@ -252,7 +252,7 @@ class Store {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
get decryptedAccountData() {
|
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() {
|
get firstName() {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import {labelMap} from "../shared/labelMap";
|
|||||||
import {statusMap} from "../shared/statusMap";
|
import {statusMap} from "../shared/statusMap";
|
||||||
import {cryptography} from "@liskhq/lisk-client";
|
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)))
|
const allAccountData=serverData.concat(blockchainData.filter(item=>!serverData.find(elem=>elem.label===item.label)))
|
||||||
return allAccountData.map((elem) => {
|
return allAccountData.map((elem) => {
|
||||||
const initialData={
|
const initialData={
|
||||||
@@ -13,6 +13,12 @@ export const decryptedData=(serverData, blockchainData, passPhrase, pubKey)=>{
|
|||||||
value: '',
|
value: '',
|
||||||
seed: ''
|
seed: ''
|
||||||
}
|
}
|
||||||
|
if(processedFeatures[elem.label])
|
||||||
|
return {
|
||||||
|
...initialData,
|
||||||
|
status: statusMap.processed,
|
||||||
|
value: elem.value,
|
||||||
|
}
|
||||||
if(!serverData.find(item=>item.label===elem.label)) {
|
if(!serverData.find(item=>item.label===elem.label)) {
|
||||||
return {
|
return {
|
||||||
...initialData,
|
...initialData,
|
||||||
|
|||||||
Reference in New Issue
Block a user