fix: disable remove button if no members selected to be removed

pull/3281/head
Audric Ackermann 1 month ago
parent 49c4b2356e
commit c3a5669ba2
No known key found for this signature in database

@ -264,7 +264,7 @@ export const UpdateGroupMembersDialog = (props: Props) => {
onClick={onClickOK}
buttonType={SessionButtonType.Simple}
buttonColor={SessionButtonColor.Danger}
disabled={isProcessingUIChange}
disabled={isProcessingUIChange || !membersToRemove.length}
dataTestId="session-confirm-ok-button"
/>
)}

Loading…
Cancel
Save