diff --git a/src/components/views/dialogs/LeaveSpaceDialog.tsx b/src/components/views/dialogs/LeaveSpaceDialog.tsx index 23a56eadae..3793deee63 100644 --- a/src/components/views/dialogs/LeaveSpaceDialog.tsx +++ b/src/components/views/dialogs/LeaveSpaceDialog.tsx @@ -100,7 +100,7 @@ const LeaveSpaceDialog: React.FC = ({ space, onFinished }) => { primaryButton={_t("Leave space")} onPrimaryButtonClick={() => onFinished(true, roomsToLeave)} hasCancel={true} - onCancel={onFinished} + onCancel={() => onFinished(false)} /> ; };