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} ) : null}
<Text maxWidth='18rem' overflowX='hidden' textOverflow="ellipsis" <Text maxWidth='18rem' overflowX='hidden' textOverflow="ellipsis"
whiteSpace="nowrap" whiteSpace="nowrap"
overflow="hidden" display="inline-block" verticalAlign="middle">{contact.status}</Text> overflow="hidden" display="inline-block" verticalAlign="middle">{contact?.status ?? ""}</Text>
</Row> </Row>
<Row width="100%" height="300px"> <Row width="100%" height="300px">
{cover} {cover}