diff --git a/frontend/src/lib/components/UserEditForm.svelte b/frontend/src/lib/components/UserEditForm.svelte index b3375b9..829eb79 100644 --- a/frontend/src/lib/components/UserEditForm.svelte +++ b/frontend/src/lib/components/UserEditForm.svelte @@ -99,14 +99,6 @@ ); } - /** - * Sets the active tab - * @param {string} tab - The tab to set as active - */ - function setActiveTab(tab) { - activeTab = tab; - } - /** @type {import('../../routes/auth/about/[id]/$types').SubmitFunction} */ const handleUpdate = async () => { isUpdating = true; @@ -158,7 +150,7 @@ type="button" class="button-dark" class:active={activeTab === tab} - on:click={() => setActiveTab(tab)} + on:click={() => (activeTab = tab)} > {$t(tab)}