diff --git a/lumina/components/LoginForm.tsx b/lumina/components/LoginForm.tsx index 9033685..ac614b3 100644 --- a/lumina/components/LoginForm.tsx +++ b/lumina/components/LoginForm.tsx @@ -25,7 +25,7 @@ import { useEffect, useRef } from "react" import { getPublicKey, generateSecretKey, nip19 } from 'nostr-tools' import { InfoIcon } from "lucide-react"; import Link from "next/link"; -import { bytesToHex, hexToBytes } from '@noble/hashes/utils' +import { bytesToHex, hexToBytes } from '@noble/hashes/utils' export function LoginForm() { @@ -47,7 +47,6 @@ export function LoginForm() { const handleAmber = async () => { const hostname = window.location.host; - console.log(hostname); if (!hostname) { throw new Error("Hostname is null or undefined"); } @@ -89,7 +88,7 @@ export function LoginForm() { if (nsecInput.current !== null) { try { let input = nsecInput.current.value; - if(input.includes("nsec")) { + if (input.includes("nsec")) { input = bytesToHex(nip19.decode(input).data as Uint8Array); console.log('decoded nsec: ' + input); } @@ -114,7 +113,7 @@ export function LoginForm() { let input = npubInput.current.value; let npub = null; let pubkey = null; - if(input.startsWith("npub1")) { + if (input.startsWith("npub1")) { npub = input; pubkey = nip19.decode(input).data.toString(); } else { @@ -142,14 +141,14 @@ export function LoginForm() { -
- +
+
- + @@ -163,8 +162,8 @@ export function LoginForm() {
- -
+ +
@@ -176,8 +175,8 @@ export function LoginForm() {
- -
+ +