mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-14 17:41:33 +03:00
publish: safety check note view
This commit is contained in:
parent
0d72959d03
commit
1b73029bc9
@ -16,7 +16,7 @@ interface AuthorProps {
|
||||
}
|
||||
|
||||
export function Author(props: AuthorProps) {
|
||||
const { contacts, ship, date, showImage } = props;
|
||||
const { contacts, ship = '', date, showImage } = props;
|
||||
const noSig = ship.slice(1);
|
||||
const contact = noSig in contacts ? contacts[noSig] : null;
|
||||
const color = contact?.color ? `#${uxToHex(contact?.color)}` : "#000000";
|
||||
|
@ -107,7 +107,7 @@ export function Note(props: NoteProps & RouteComponentProps) {
|
||||
ship={props.ship}
|
||||
book={props.book}
|
||||
/>
|
||||
{notebook.comments && (
|
||||
{notebook?.comments && (
|
||||
<Comments
|
||||
ship={ship}
|
||||
book={props.book}
|
||||
|
Loading…
Reference in New Issue
Block a user