profile: safely access status

This commit is contained in:
Matilde Park 2021-02-11 18:58:39 -05:00
parent b29c9639d7
commit 34a9d9660f

View File

@ -84,7 +84,7 @@ export function Profile(props: any) {
) : null}
<Text maxWidth='18rem' overflowX='hidden' textOverflow="ellipsis"
whiteSpace="nowrap"
overflow="hidden" display="inline-block" verticalAlign="middle">{contact.status}</Text>
overflow="hidden" display="inline-block" verticalAlign="middle">{contact?.status ?? ""}</Text>
</Row>
<Row width="100%" height="300px">
{cover}