This commit is contained in:
Jon Staab
2024-10-17 16:03:50 -07:00
parent 2f561149fa
commit fd5b0a9af3
33 changed files with 129 additions and 140 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
<script lang="ts">
import {nip19} from 'nostr-tools'
import {nip19} from "nostr-tools"
import {getPubkey} from "@welshman/signer"
import {addSession} from "@welshman/app"
import Spinner from "@lib/components/Spinner.svelte"
@@ -18,7 +18,7 @@
const onSubmit = async () => {
let secret = key
if (secret.startsWith('nsec')) {
if (secret.startsWith("nsec")) {
secret = nip19.decode(secret).data as string
}