invite: prevent interface crash

We're accessing invite.ship when we don't have invite. This stubs that
out.
This commit is contained in:
Matilde Park 2021-02-12 22:35:13 -05:00
parent 58faf16872
commit a91f96751b

View File

@ -124,10 +124,7 @@ export function InviteItem(props: InviteItemProps) {
<JoinSkeleton status={status} gapY="3">
<Row py="1" alignItems="center">
<Icon display="block" color="blue" icon="Bullet" mr="2" />
<Text mr="1">You are joining a DM with</Text>
<Text mr="1" mono>
{cite(`~${invite!.ship}`)}
</Text>
<Text mr="1">Joining direct message...</Text>
</Row>
</JoinSkeleton>
);