Merge pull request #52 from franze6/DID-11

added data check for the table on Profile page
This commit is contained in:
Daria Golova
2022-08-03 10:31:48 +03:00
committed by GitHub
2 changed files with 9 additions and 5 deletions

View File

@@ -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*/}

View File

@@ -121,8 +121,10 @@ class Store {
}
userDataFetchChange(res) {
if (res.data) {
this._userData = res.data;
}
};
keysArrayFetchChange(res) {
this._keysArray = res.data;
@@ -172,7 +174,7 @@ class Store {
...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]
}))
}