diff --git a/src/public/javascript/createProfile.js b/src/public/javascript/createProfile.js index 80e9fb0..bfb9ac5 100644 --- a/src/public/javascript/createProfile.js +++ b/src/public/javascript/createProfile.js @@ -151,7 +151,7 @@ const checkIfSubmittable = debounce((allInputs) => { const buttonShouldBeDisabled = !(nymIsFilled && atLeastOneContactIsFilled); submitProfileButton.disabled = buttonShouldBeDisabled; -}, 1000); +}, 500); async function createProfile(allInputs) { const contactDetails = []; @@ -181,6 +181,10 @@ async function createProfile(allInputs) { }, body: JSON.stringify({ nym }), }); + + setTimeout(() => { + window.location.href = '/home'; + }, 1000); } function onLoadErrands(allInputs, submitProfileButton) {