From fc977cc43a59643b739eecfd4240133a7243d2d2 Mon Sep 17 00:00:00 2001 From: DwCay Date: Tue, 23 Aug 2022 11:17:34 +0300 Subject: [PATCH] Fix decrypted data for blockchain data --- src/partials/profile/ProfileTableItem.jsx | 2 +- src/store/store.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/partials/profile/ProfileTableItem.jsx b/src/partials/profile/ProfileTableItem.jsx index a75750b..713c9b0 100644 --- a/src/partials/profile/ProfileTableItem.jsx +++ b/src/partials/profile/ProfileTableItem.jsx @@ -20,7 +20,7 @@ function ProfileTableItem(props) { {props.property}
-
{props.value}
+
{props.status==='Blockchained'?`${props.value.slice(0,4)}****${props.value.slice(props.value.length-4)}`:props.value}
{props.property}
diff --git a/src/store/store.js b/src/store/store.js index 438d024..bd9905f 100644 --- a/src/store/store.js +++ b/src/store/store.js @@ -227,7 +227,7 @@ class Store { return { ...initialData, 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(':');