redirect
This commit is contained in:
parent
3154a8511a
commit
c38feef86f
1 changed files with 5 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ const checkIfSubmittable = debounce((allInputs) => {
|
||||||
|
|
||||||
const buttonShouldBeDisabled = !(nymIsFilled && atLeastOneContactIsFilled);
|
const buttonShouldBeDisabled = !(nymIsFilled && atLeastOneContactIsFilled);
|
||||||
submitProfileButton.disabled = buttonShouldBeDisabled;
|
submitProfileButton.disabled = buttonShouldBeDisabled;
|
||||||
}, 1000);
|
}, 500);
|
||||||
|
|
||||||
async function createProfile(allInputs) {
|
async function createProfile(allInputs) {
|
||||||
const contactDetails = [];
|
const contactDetails = [];
|
||||||
|
|
@ -181,6 +181,10 @@ async function createProfile(allInputs) {
|
||||||
},
|
},
|
||||||
body: JSON.stringify({ nym }),
|
body: JSON.stringify({ nym }),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
window.location.href = '/home';
|
||||||
|
}, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
function onLoadErrands(allInputs, submitProfileButton) {
|
function onLoadErrands(allInputs, submitProfileButton) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue