Changing data in store to array

This commit is contained in:
DwCay
2022-07-06 19:27:26 +03:00
parent f0e0d9479d
commit 2d0ae35cc8
4 changed files with 11 additions and 9 deletions

View File

@@ -8,7 +8,6 @@ import ProfileTable from '../../partials/digitalId/ProfileTable';
import Image from '../../images/transactions-image-04.svg';
const Profile = observer (() => {
console.log(registrationStore.accountData)
const [sidebarOpen, setSidebarOpen] = useState(false);
const [buttonPanelOpen, setButtonPanelOpen] = useState(true);
const [removePanelOpen, setRemovePanelOpen] = useState(false);
@@ -76,10 +75,8 @@ const Profile = observer (() => {
}
const deletePropertyData = () => {
const newDataPush = {}
const changeData = userDataStore.decryptedData.filter(item=>!selectedItems.includes(item.key))
changeData.forEach(pushData=>newDataPush[pushData.key]=pushData.value)
registrationStore.pushAccountData(newDataPush)
registrationStore.pushAccountData(changeData)
}
const cancelAddPanel = () => {