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 (