interface: fix tsc

This commit is contained in:
Liam Fitzgerald 2021-06-17 09:09:37 +10:00
parent df45d21128
commit 7240d23049
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -39,7 +39,7 @@ export function Mention(props: {
ship: string;
first?: boolean;
}) {
const { ship, first } = props;
const { ship, first = false } = props;
const contact = useContact(`~${deSig(ship)}`);
const showNickname = useShowNickname(contact);
const name = showNickname ? contact?.nickname : cite(ship);