diff --git a/src/routes/settings/Connections.tsx b/src/routes/settings/Connections.tsx index ea506ca..5b27493 100644 --- a/src/routes/settings/Connections.tsx +++ b/src/routes/settings/Connections.tsx @@ -1,11 +1,5 @@ import { NwcProfile, type BudgetPeriod } from "@mutinywallet/mutiny-wasm"; -import { - createEffect, - createResource, - createSignal, - For, - Show -} from "solid-js"; +import { createResource, createSignal, For, Show } from "solid-js"; import { QRCodeSVG } from "solid-qr-code"; import { useSearchParams } from "solid-start"; @@ -253,13 +247,6 @@ function Nwc() { const [newConnection, setNewConnection] = createSignal(); - createEffect(() => { - // Should re-run after every sync - if (!state.is_syncing) { - refetch(); - } - }); - async function createConnection(f: BudgetForm) { let newProfile: NwcProfile | undefined = undefined; @@ -299,11 +286,11 @@ function Nwc() { } else { // Remember the index so the collapser is open after creation setNewConnection(newProfile.index); - refetch(); } setSearchParams({ name: "" }); setDialogOpen(false); + refetch(); // If there's a "return_to" param we use that instead of the callbackUri scheme const returnUrl = searchParams.return_to; @@ -341,7 +328,7 @@ function Nwc() { - 0}> + 0}>