Update wallet to use welshman's session wallet

This commit is contained in:
Jon Staab
2025-08-18 13:26:28 -07:00
parent 2a30ca5306
commit 38e0fc53ad
6 changed files with 34 additions and 63 deletions
+3 -2
View File
@@ -1,10 +1,11 @@
<script lang="ts">
import {dissoc} from "@welshman/lib"
import {pubkey, updateSession} from "@welshman/app"
import Confirm from "@lib/components/Confirm.svelte"
import {wallet} from "@app/state"
import {clearModals} from "@app/modal"
const confirm = async () => {
wallet.set(undefined)
updateSession($pubkey!, dissoc("wallet"))
clearModals()
}