Fix leave space cancel button exploding

pull/21833/head
Michael Telatynski 2021-10-18 09:22:44 +01:00
parent d93c220aae
commit c0d9c69f16
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ const LeaveSpaceDialog: React.FC<IProps> = ({ space, onFinished }) => {
primaryButton={_t("Leave space")}
onPrimaryButtonClick={() => onFinished(true, roomsToLeave)}
hasCancel={true}
onCancel={onFinished}
onCancel={() => onFinished(false)}
/>
</BaseDialog>;
};