Changing data in store to array
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user