From 222850dfd935da24dfe40d23456781c1221aee7b Mon Sep 17 00:00:00 2001 From: DwCay Date: Wed, 6 Jul 2022 12:44:53 +0300 Subject: [PATCH] Fix naming in store --- src/pages/Onboarding4.jsx | 2 +- src/pages/digitalId/ProfileId.jsx | 2 +- src/store/store.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/Onboarding4.jsx b/src/pages/Onboarding4.jsx index 4d0211d..8031f2b 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.fetchCreateNewAccount() + registrationStore.pushNewCreateAccount() setCheckBoxesSelected(true) } diff --git a/src/pages/digitalId/ProfileId.jsx b/src/pages/digitalId/ProfileId.jsx index abc710b..0cef0a3 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.fetchChangeAccountData(changeData) + registrationStore.pushChangeAccountData(changeData) } const cancelAddPanel = () => { diff --git a/src/store/store.js b/src/store/store.js index c94784a..7d1e852 100644 --- a/src/store/store.js +++ b/src/store/store.js @@ -23,7 +23,7 @@ class Store { }).then((res) => this.userDataFetchChange(res))) }; - fetchCreateNewAccount() { + pushNewCreateAccount() { 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)) } - fetchChangeAccountData(data) { + pushChangeAccountData(data) { fetchWrapper.postAuth('http://3.125.47.101/api/data/private', { networkIdentifier: this.nodeInfo.networkIdentifier, lastBlockID: this.nodeInfo.lastBlockID