From b883a2d96c0a1b0d22c300826c17b96a7b0880ef Mon Sep 17 00:00:00 2001
From: ivar <i@oiee.no>
Date: Wed, 10 Dec 2025 22:59:15 +0100
Subject: Add .gitattributes

---
 app/src/routes/+page.svelte | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'app/src/routes/+page.svelte')

diff --git a/app/src/routes/+page.svelte b/app/src/routes/+page.svelte
index ed35a84..005eb34 100644
--- a/app/src/routes/+page.svelte
+++ b/app/src/routes/+page.svelte
@@ -27,6 +27,10 @@
         await refreshSB1Token();
         getTokenExpires().refresh();
     }
+
+    async function initActual() {
+        await initActual()
+    }
 </script>
 
 <main>
@@ -37,7 +41,7 @@
             <pre>accessToken: {tokens.accessToken.created.add({ seconds: tokens.accessToken.expires }).toLocaleString()}
 refreshToken: {tokens.refreshToken.created.add({ seconds: tokens.refreshToken.expires }).toLocaleString()}</pre>
             <ul>
-                {#each accounts.accounts as account}
+                {#each accounts?.accounts as account}
                     {@const transactions = await getTransactions(account.key)}
                     <li>{account.name}</li>
                     <ul>
@@ -47,9 +51,9 @@ refreshToken: {tokens.refreshToken.created.add({ seconds: tokens.refreshToken.ex
                     </ul>
                 {/each}
             </ul>
-        {:else}
             <Button onclick={clearAuth}>Slett autorisasjon</Button>
             <Button onclick={refreshAuth}>Oppdater autorisasjon</Button>
+            <Button></Button>
         {/if}
     {:else}
         <Button onclick={authorize} loading={navigating}>Autentisér hos Sparebanken 1</Button>
-- 
cgit v1.3

