diff --git a/src/pages/Onboarding4.jsx b/src/pages/Onboarding4.jsx index 8031f2b..3c3b754 100644 --- a/src/pages/Onboarding4.jsx +++ b/src/pages/Onboarding4.jsx @@ -14,7 +14,7 @@ const Onboarding4 = observer(()=>{ if(checkBoxes.find(item=>item.checked===false)) { return } else { - registrationStore.pushNewCreateAccount() + registrationStore.pushNewAccount() setCheckBoxesSelected(true) } diff --git a/src/pages/digitalId/ProfileId.jsx b/src/pages/digitalId/ProfileId.jsx index 0cef0a3..5d60e58 100644 --- a/src/pages/digitalId/ProfileId.jsx +++ b/src/pages/digitalId/ProfileId.jsx @@ -76,7 +76,7 @@ const Profile = observer (() => { const deletePropertyData = () => { const changeData = registrationStore.userData.data.filter(item=>!selectedItems.includes(item.label)) - registrationStore.pushChangeAccountData(changeData) + registrationStore.pushAccountData(changeData) } const cancelAddPanel = () => { diff --git a/src/store/store.js b/src/store/store.js index 7d1e852..e003b8b 100644 --- a/src/store/store.js +++ b/src/store/store.js @@ -23,7 +23,7 @@ class Store { }).then((res) => this.userDataFetchChange(res))) }; - pushNewCreateAccount() { + pushNewAccount() { fetchWrapper.postAuth('http://3.125.47.101/api/data/private', { networkIdentifier: this.nodeInfo.networkIdentifier, lastBlockID: this.nodeInfo.lastBlockID @@ -37,7 +37,7 @@ class Store { }).then((res) => this.userDataFetchChange(res)) } - pushChangeAccountData(data) { + pushAccountData(data) { fetchWrapper.postAuth('http://3.125.47.101/api/data/private', { networkIdentifier: this.nodeInfo.networkIdentifier, lastBlockID: this.nodeInfo.lastBlockID