diff --git a/src/pages/Onboarding4.jsx b/src/pages/Onboarding4.jsx index b49256e..4d0211d 100644 --- a/src/pages/Onboarding4.jsx +++ b/src/pages/Onboarding4.jsx @@ -9,12 +9,12 @@ const Onboarding4 = observer(()=>{ const [checkBoxesSelected, setCheckBoxesSelected] = useState(false) - function postAuthData () { + function createAccount () { let checkBoxes=[...document.getElementsByClassName("form-checkbox")] if(checkBoxes.find(item=>item.checked===false)) { return } else { - registrationStore.postAuth() + registrationStore.fetchCreateNewAccount() setCheckBoxesSelected(true) } @@ -82,7 +82,7 @@ const Onboarding4 = observer(()=>{

{registrationStore.accountData.first_name ? `Nice to meet you, ${registrationStore.accountData.first_name} 🙌` : 'Please, go back step 2'}

- diff --git a/src/store/store.js b/src/store/store.js index d069077..80ebc8b 100644 --- a/src/store/store.js +++ b/src/store/store.js @@ -21,7 +21,7 @@ class Store { })) }; - postAuth() { + fetchCreateNewAccount() { fetchWrapper.postAuth('http://3.125.47.101/api/data/account', { networkIdentifier: this.nodeInfo.networkIdentifier, lastBlockID: this.nodeInfo.lastBlockID