cleared extension req

This commit is contained in:
zmeyer44 2023-10-24 13:20:09 -04:00
parent 6151167b12
commit 8c893fd9f1

View File

@ -85,7 +85,7 @@ export default function LoginModal() {
async function handleLoginNsec() {
setIsLoading(true);
console.log("loging in");
if (typeof window.nostr !== "undefined") {
const user = await loginWithSecret(nsec);
if (!user) {
throw new Error("NO auth");
@ -93,9 +93,6 @@ export default function LoginModal() {
console.log("LOGIN", user);
await loginWithPubkey(nip19.decode(user.npub).data.toString());
localStorage.setItem("shouldReconnect", "true");
} else {
alert("MIssing window");
}
if (typeof window.webln !== "undefined") {
await window.webln.enable();