mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-09-27 20:17:05 +02:00
fix build
This commit is contained in:
@@ -104,6 +104,7 @@ class AccountService {
|
||||
db.put("accounts", account);
|
||||
}
|
||||
addFromNostrConnect(client: NostrConnectClient) {
|
||||
if (!client.pubkey) throw new Error("Cant add client without pubkey");
|
||||
this.addAccount({
|
||||
type: "nostr-connect",
|
||||
signerRelays: client.relays,
|
||||
|
@@ -103,7 +103,7 @@ export default function LoginNostrAddressCreate() {
|
||||
|
||||
nostrConnectService.saveClient(client);
|
||||
accountService.addFromNostrConnect(client);
|
||||
accountService.switchAccount(client.pubkey);
|
||||
accountService.switchAccount(client.pubkey!);
|
||||
} catch (e) {
|
||||
if (e instanceof Error) toast({ description: e.message, status: "error" });
|
||||
}
|
||||
|
@@ -47,7 +47,7 @@ export default function LoginNostrAddressView() {
|
||||
|
||||
nostrConnectService.saveClient(client);
|
||||
accountService.addFromNostrConnect(client);
|
||||
accountService.switchAccount(client.pubkey);
|
||||
accountService.switchAccount(client.pubkey!);
|
||||
} else {
|
||||
accountService.addAccount({
|
||||
type: "pubkey",
|
||||
|
Reference in New Issue
Block a user