From 5600f8ddbf595daf7d488b7f24f25c766af91563 Mon Sep 17 00:00:00 2001 From: guanbinrui Date: Fri, 20 Dec 2019 08:32:24 +0800 Subject: [PATCH] fix: do not render no maskbook users close #537 --- .../shared/SelectRecipients/SelectRecipientsDialog.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/shared/SelectRecipients/SelectRecipientsDialog.tsx b/src/components/shared/SelectRecipients/SelectRecipientsDialog.tsx index 431db7eebd44..a9b1dc7db691 100644 --- a/src/components/shared/SelectRecipients/SelectRecipientsDialog.tsx +++ b/src/components/shared/SelectRecipients/SelectRecipientsDialog.tsx @@ -59,9 +59,11 @@ export function SelectRecipientsDialogUI(props: SelectRecipientsDialogUIProps) { const currentIdentity = useCurrentIdentity() const itemsForRender = props.ignoreMyself ? props.items.filter( - x => !x.identifier.equals(currentIdentity ? currentIdentity.identifier : ProfileIdentifier.unknown), + x => + x?.linkedPersona?.fingerprint && + !x.identifier.equals(currentIdentity ? currentIdentity.identifier : ProfileIdentifier.unknown), ) - : props.items + : props.items.filter(x => x.linkedPersona?.fingerprint) return (