Fix naming in store

This commit is contained in:
DwCay
2022-07-06 12:44:53 +03:00
parent e44dfee284
commit 222850dfd9
3 changed files with 4 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ const Onboarding4 = observer(()=>{
if(checkBoxes.find(item=>item.checked===false)) { if(checkBoxes.find(item=>item.checked===false)) {
return return
} else { } else {
registrationStore.fetchCreateNewAccount() registrationStore.pushNewCreateAccount()
setCheckBoxesSelected(true) setCheckBoxesSelected(true)
} }

View File

@@ -76,7 +76,7 @@ const Profile = observer (() => {
const deletePropertyData = () => { const deletePropertyData = () => {
const changeData = registrationStore.userData.data.filter(item=>!selectedItems.includes(item.label)) const changeData = registrationStore.userData.data.filter(item=>!selectedItems.includes(item.label))
registrationStore.fetchChangeAccountData(changeData) registrationStore.pushChangeAccountData(changeData)
} }
const cancelAddPanel = () => { const cancelAddPanel = () => {

View File

@@ -23,7 +23,7 @@ class Store {
}).then((res) => this.userDataFetchChange(res))) }).then((res) => this.userDataFetchChange(res)))
}; };
fetchCreateNewAccount() { pushNewCreateAccount() {
fetchWrapper.postAuth('http://3.125.47.101/api/data/private', { fetchWrapper.postAuth('http://3.125.47.101/api/data/private', {
networkIdentifier: this.nodeInfo.networkIdentifier, networkIdentifier: this.nodeInfo.networkIdentifier,
lastBlockID: this.nodeInfo.lastBlockID lastBlockID: this.nodeInfo.lastBlockID
@@ -37,7 +37,7 @@ class Store {
}).then((res) => this.userDataFetchChange(res)) }).then((res) => this.userDataFetchChange(res))
} }
fetchChangeAccountData(data) { pushChangeAccountData(data) {
fetchWrapper.postAuth('http://3.125.47.101/api/data/private', { fetchWrapper.postAuth('http://3.125.47.101/api/data/private', {
networkIdentifier: this.nodeInfo.networkIdentifier, networkIdentifier: this.nodeInfo.networkIdentifier,
lastBlockID: this.nodeInfo.lastBlockID lastBlockID: this.nodeInfo.lastBlockID