Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalmi committed Sep 19, 2023
1 parent 3ca21fb commit 8459737
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/js/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const Footer = () => {
);
};

const key = Key.toNostrBech32Address(Key.getPubKey(), 'npub');
const key = Key.toNostrBech32Address(Key.getPubKey(), 'npub') || '';

return (
<Show when={key && !chatId}>
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/events/note/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const NoteAvatar = ({ event, isQuote, standalone, fullWidth }) => (
<span className={`flex flex-col items-center flex-shrink-0 ${fullWidth ? 'mr-2' : 'mr-4'}`}>
<Show when={event.pubkey}>
<Link href={`/${event.pubkey}`}>
<Avatar str={Key.toNostrBech32Address(event.pubkey, 'npub')} width={40} />
<Avatar str={Key.toNostrBech32Address(event.pubkey, 'npub') || ''} width={40} />
</Link>
</Show>
<Show when={isQuote && !standalone}>
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/searchbox/SearchResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<a
onFocus={onFocus}
Expand Down

0 comments on commit 8459737

Please sign in to comment.