From c38feef86fdeb76860c4d7280d9904e03b5ddc40 Mon Sep 17 00:00:00 2001 From: counterweight Date: Thu, 20 Feb 2025 23:13:33 +0100 Subject: [PATCH] redirect --- src/public/javascript/createProfile.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) {