diff --git a/src/pages/digitalId/ProfileId.jsx b/src/pages/digitalId/ProfileId.jsx index 06c30ad..e73f2a3 100644 --- a/src/pages/digitalId/ProfileId.jsx +++ b/src/pages/digitalId/ProfileId.jsx @@ -23,7 +23,7 @@ const Profile = observer (() => { seed: Math.floor(Math.random() * 90000000000000000000) }; - const initialPropertyValues = ['First name', 'Second name', 'Birthdate', 'Gender', 'Residence', 'Document type', 'Document ID', 'Issue date', 'Expiry date']; + const initialPropertyValues = ['First name', 'Second name', 'Birthdate', 'Gender', 'National doctype', 'National doc id', 'National doc issue date', 'National doc expiry date']; const [propertyValues, setPropertyValues] = useState([]); const [updatedValues, setUpdatedValues] = useState([defaultValues]); const [addedValues, setAddedValues] = useState(defaultValues); @@ -43,7 +43,6 @@ const Profile = observer (() => { ...prevState, [field]: +value, })) - console.log(addedValues); }; const changeUpdatedValues = (value, field, key) => { @@ -59,7 +58,6 @@ const Profile = observer (() => { } : elem )) ) - console.log(updatedValues); }; const closeHint = (element) => { @@ -113,7 +111,7 @@ const Profile = observer (() => { const deleteDataParameters = () => { const changeData = userDataStore.decryptedData.filter(item=>!selectedItems.includes(item.key)) - registrationStore.pushAccountData(changeData) + registrationStore.pushAccountData(changeData); } const changeDataParameters = () => { @@ -135,12 +133,12 @@ const Profile = observer (() => { }) return newArr })(); - console.log(updatedData); + registrationStore.pushAccountData(updatedData); } const addDataParameters = () => { - addedValues.label = addedValues.label.toLowerCase().split(' ').join('_'); - console.log(registrationStore.userData.data.concat(addedValues)); + addedValues.key = addedValues.label.toLowerCase().split(' ').join('_'); + registrationStore.pushAccountData(userDataStore.decryptedData.concat(addedValues)); } const cancelAddPanel = () => { @@ -162,7 +160,6 @@ const Profile = observer (() => { const openUpdatePanel = () => { setUpdatePanelOpen(true); setChangePanelOpen(false); - console.log(updatedValues); } const applyDataDeletion = () => { @@ -312,51 +309,48 @@ const Profile = observer (() => { {/* Update panel */}