Navigation Menu

Skip to content

Commit

Permalink
fix: prevent from selecting current identitity as recipient
Browse files Browse the repository at this point in the history
  • Loading branch information
guanbinrui authored and Jack-Works committed Dec 24, 2019
1 parent 988a368 commit e06aa11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/shared/SelectRecipients/SelectRecipients.tsx
Expand Up @@ -35,9 +35,10 @@ export interface SelectRecipientsUIProps<T extends Group | Profile = Group | Pro
PersonOrGroupInListProps?: Partial<PersonOrGroupInListProps>
SelectRecipientsDialogUIProps?: Partial<SelectRecipientsDialogUIProps>
}

export function SelectRecipientsUI<T extends Group | Profile = Group | Profile>(props: SelectRecipientsUIProps) {
const classes = useStylesExtends(useStyles(), props)
const { items, maxSelection, selected, onSetSelected } = props // TODO: support maxSelection constraint
const { items, maxSelection, selected, onSetSelected } = props
const groupItems = items.filter(x => isGroup(x)) as Group[]
const profileItems = items.filter(x => isProfile(x)) as Profile[]

Expand Down

0 comments on commit e06aa11

Please sign in to comment.