Merge pull request #52 from franze6/DID-11
added data check for the table on Profile page
This commit is contained in:
@@ -234,8 +234,10 @@ const Profile = observer (() => {
|
||||
</ul>
|
||||
</div>
|
||||
{/* Table */}
|
||||
<div className='w-[828px]'>
|
||||
<ProfileTable isCheck={isCheck} handleClick={handleClick} userData={registrationStore.decryptedUserData}/>
|
||||
</div>
|
||||
</div>
|
||||
{/* Left sidebar */}
|
||||
<div>
|
||||
{/* Button panel*/}
|
||||
|
||||
@@ -121,8 +121,10 @@ class Store {
|
||||
}
|
||||
|
||||
userDataFetchChange(res) {
|
||||
if (res.data) {
|
||||
this._userData = res.data;
|
||||
}
|
||||
};
|
||||
|
||||
keysArrayFetchChange(res) {
|
||||
this._keysArray = res.data;
|
||||
@@ -167,12 +169,12 @@ class Store {
|
||||
})
|
||||
}
|
||||
|
||||
get decryptedUserData(){
|
||||
get decryptedUserData() {
|
||||
return this._userData.map((elem) => ({
|
||||
...elem,
|
||||
key: elem.label,
|
||||
label: labelMap[elem.label],
|
||||
value: cryptography.decryptMessageWithPassphrase(elem.value, elem.value_nonce, registrationStore.passPhrase, registrationStore.pubKey).split(':')[1]
|
||||
value: cryptography.decryptMessageWithPassphrase(elem.value, elem.value_nonce, this.passPhrase, this.pubKey).split(':')[1]
|
||||
}))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user