Hide zap button when inappropriate

* Current user has No Nostr pubkey connected
* Creator can't accept zaps
* Creator is current user (self-zap)
This commit is contained in:
2026-08-20 16:19:51 -06:00
parent 74e9860e08
commit 82bc6a424e
3 changed files with 28 additions and 8 deletions
+6 -1
View File
@@ -9,7 +9,12 @@ export class MockNostrAuthService extends Service {
@tracked connectUri = null;
get isConnected() {
return false;
return (
!!this.pubkey &&
(this.signerType === 'extension'
? typeof window !== 'undefined' && typeof window.nostr !== 'undefined'
: true)
);
}
get isMobile() {