diff --git a/src/Gang/ui/RecruitPopup.tsx b/src/Gang/ui/RecruitPopup.tsx index cac545511..6af779280 100644 --- a/src/Gang/ui/RecruitPopup.tsx +++ b/src/Gang/ui/RecruitPopup.tsx @@ -36,13 +36,8 @@ export function RecruitPopup(props: IRecruitPopupProps): React.ReactElement { removePopup(props.popupId); } - function cancel(): void { - removePopup(props.popupId); - } - function onKeyUp(event: React.KeyboardEvent): void { if (event.keyCode === 13) recruit(); - if (event.keyCode === 27) cancel(); } function onChange(event: React.ChangeEvent): void { @@ -64,9 +59,6 @@ export function RecruitPopup(props: IRecruitPopupProps): React.ReactElement { Recruit Gang Member - - Cancel - ); }