Fix decrypted data for blockchain data

This commit is contained in:
DwCay
2022-08-23 11:17:34 +03:00
parent 0a0151d1dd
commit fc977cc43a
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ function ProfileTableItem(props) {
<img className="rounded-full" src={props.image} width="40" height="40" alt={props.property} /> <img className="rounded-full" src={props.image} width="40" height="40" alt={props.property} />
</div> </div>
<div className="flex flex-col w-60"> <div className="flex flex-col w-60">
<div className="font-semibold text-slate-800 text-base">{props.value}</div> <div className="font-semibold text-slate-800 text-base">{props.status==='Blockchained'?`${props.value.slice(0,4)}****${props.value.slice(props.value.length-4)}`:props.value}</div>
<div className="font-normal text-xxs">{props.property}</div> <div className="font-normal text-xxs">{props.property}</div>
</div> </div>
</div> </div>

View File

@@ -227,7 +227,7 @@ class Store {
return { return {
...initialData, ...initialData,
status: 'Blockchained', status: 'Blockchained',
value: `${elem.value.slice(0,4)}****${elem.value.slice(elem.value.length-4)}` value: elem.value
} }
} }
const [seed, value] = cryptography.decryptMessageWithPassphrase(elem.value, elem.value_nonce, this.passPhrase, this.pubKey).split(':'); const [seed, value] = cryptography.decryptMessageWithPassphrase(elem.value, elem.value_nonce, this.passPhrase, this.pubKey).split(':');