temp remove until fixed

This commit is contained in:
Sofía Aritz 2024-06-30 18:08:53 +02:00
parent 0e5b9aa324
commit ed4ea1db40
Signed by: sofia
GPG key ID: 90B5116E3542B28F

View file

@ -5,7 +5,7 @@
<script lang="ts"> <script lang="ts">
import { createForm } from 'felte'; import { createForm } from 'felte';
import { account, credentials, refreshAccount } from '$lib/stores'; import { account, credentials, refreshAccount } from '$lib/stores';
import { type AccountHeir, insertHeir, removeHeir } from '$lib/api'; import { type AccountHeir, insertHeir, removeHeir as removeDBHeir } from '$lib/api';
credentials.subscribe( credentials.subscribe(
(v) => v == null && setTimeout(() => (window.location.pathname = '/auth/login'), 200) (v) => v == null && setTimeout(() => (window.location.pathname = '/auth/login'), 200)
@ -14,7 +14,7 @@
let heirWizard = false; let heirWizard = false;
const { form, errors } = createForm({ const { form, errors } = createForm({
onSubmit: async (values) => { /*onSubmit: async (values) => {
let heir: AccountHeir = { let heir: AccountHeir = {
contactMethod: values.contactMethod, contactMethod: values.contactMethod,
name: values.name, name: values.name,
@ -45,7 +45,7 @@
} }
return errors; return errors;
} }*/
}); });
async function removeHeir(heir: AccountHeir) { async function removeHeir(heir: AccountHeir) {