fix app crashes

This commit is contained in:
Abhinav 2023-07-24 18:15:01 +05:30
parent db18f1c4e6
commit 11dc99a6d6

View file

@ -26,7 +26,7 @@ function CollectionShare({ collectionSummary, ...props }: Props) {
props.onClose();
}
};
if (!props.collection) {
if (!props.collection || !collectionSummary) {
return <></>;
}
const { type } = collectionSummary;