diff --git a/src/meshcore_hub/web/static/js/spa/pages/profile.js b/src/meshcore_hub/web/static/js/spa/pages/profile.js index f74f9b3..8333474 100644 --- a/src/meshcore_hub/web/static/js/spa/pages/profile.js +++ b/src/meshcore_hub/web/static/js/spa/pages/profile.js @@ -167,7 +167,6 @@ ${flashHtml} `, container); const ac = new AbortController(); - const signal = ac.signal; container.querySelector('#profile-form').addEventListener('submit', async (e) => { e.preventDefault(); @@ -184,7 +183,7 @@ ${flashHtml} } catch (err) { router.navigate('/profile?error=' + encodeURIComponent(err.message), true); } - }, { signal }); + }, { signal: ac.signal }); return () => ac.abort();