fix: redirect to index instead of displaying a generic alert

pull/243/head
Josh Moore 1 year ago
parent cdc3e19435
commit 36de04b483

@ -80,7 +80,7 @@ document.addEventListener('DOMContentLoaded', () => {
message: string
}) => {
if (!data.success) alert(data.message);
else alert('good?');
else window.location.href = '/';
})
.catch((err) => errAlert('POST to /setup failed!', err))
.finally(() => Elements.submitButton.disabled = false);

Loading…
Cancel
Save