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> </ul>
</div> </div>
{/* Table */} {/* Table */}
<div className='w-[828px]'>
<ProfileTable isCheck={isCheck} handleClick={handleClick} userData={registrationStore.decryptedUserData}/> <ProfileTable isCheck={isCheck} handleClick={handleClick} userData={registrationStore.decryptedUserData}/>
</div> </div>
</div>
{/* Left sidebar */} {/* Left sidebar */}
<div> <div>
{/* Button panel*/} {/* Button panel*/}

View File

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