From 84597376bc287616e337653da10792ba4eb135f4 Mon Sep 17 00:00:00 2001 From: Martti Malmi Date: Tue, 19 Sep 2023 16:38:27 +0300 Subject: [PATCH] fix build --- src/js/components/Footer.tsx | 2 +- src/js/components/events/note/Avatar.tsx | 2 +- src/js/components/searchbox/SearchResult.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/components/Footer.tsx b/src/js/components/Footer.tsx index 3f7b3f4ee..122376e0d 100644 --- a/src/js/components/Footer.tsx +++ b/src/js/components/Footer.tsx @@ -65,7 +65,7 @@ const Footer = () => { ); }; - const key = Key.toNostrBech32Address(Key.getPubKey(), 'npub'); + const key = Key.toNostrBech32Address(Key.getPubKey(), 'npub') || ''; return ( diff --git a/src/js/components/events/note/Avatar.tsx b/src/js/components/events/note/Avatar.tsx index aee4ddd03..682141080 100644 --- a/src/js/components/events/note/Avatar.tsx +++ b/src/js/components/events/note/Avatar.tsx @@ -8,7 +8,7 @@ const NoteAvatar = ({ event, isQuote, standalone, fullWidth }) => ( - + diff --git a/src/js/components/searchbox/SearchResult.tsx b/src/js/components/searchbox/SearchResult.tsx index 4e3288ff2..ca1d1c5c1 100644 --- a/src/js/components/searchbox/SearchResult.tsx +++ b/src/js/components/searchbox/SearchResult.tsx @@ -15,7 +15,7 @@ export default function SearchResult({ item, onClick, onFocus, selected }) { followText = `${item.followers.size} ${t('followers')}`; } } - const npub = Key.toNostrBech32Address(item.key, 'npub'); + const npub = Key.toNostrBech32Address(item.key, 'npub') || ''; return (