integrated received data into table

This commit is contained in:
Daria Golova
2022-06-30 14:30:52 +03:00
parent 1c539e5255
commit 5f85d1696a
3 changed files with 116 additions and 222 deletions

View File

@@ -13,10 +13,11 @@ class UserDataStore{
})
}
get userData(){
get data(){
return this._data.map((elem) => ({
...elem,
value: cryptography.decryptMessageWithPassphrase(elem.value, elem.value_nonce, registrationStore.passPhrase, registrationStore.pubKey)
label: elem.label.charAt(0).toUpperCase()+elem.label.slice(1).split('_').join(' '),
value: cryptography.decryptMessageWithPassphrase(elem.value, elem.value_nonce, registrationStore.passPhrase, registrationStore.pubKey).split(':')[1]
}))
}
}