commit 501952211f0c55b19a61313470857a95d942aa10
parent 29674bcc13029b45e1f829174d26dc16ecbc9e06
Author: triesap <137732411+triesap@users.noreply.github.com>
Date: Fri, 4 Oct 2024 08:14:51 +0000
client: edit iclientnostrlib
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/src/nostr/lib.ts b/client/src/nostr/lib.ts
@@ -56,7 +56,7 @@ export class ClientNostrLib implements IClientNostrLib {
* @returns nostr public key npub
*/
public npub(public_key_hex: string | undefined, fallback_to_hex?: boolean): string {
- if (!public_key_hex) return fallback_to_hex ? public_key_hex : ``;
+ if (!public_key_hex) return ``;
const npub = nip19.npubEncode(public_key_hex);
return npub ? npub : fallback_to_hex ? public_key_hex : ``;
}