mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-25 02:32:55 +02:00
BUGFIX: Wrong error message when failing to recruit gang member (#1580)
This commit is contained in:
@@ -5,6 +5,7 @@ import { useGang } from "./Context";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import Button from "@mui/material/Button";
|
||||
import Box from "@mui/material/Box";
|
||||
import { RecruitmentResult } from "../Gang";
|
||||
|
||||
interface IProps {
|
||||
onRecruit: () => void;
|
||||
@@ -16,7 +17,7 @@ export function RecruitButton(props: IProps): React.ReactElement {
|
||||
const [open, setOpen] = useState(false);
|
||||
const recruitsAvailable = gang.getRecruitsAvailable();
|
||||
|
||||
if (!gang.canRecruitMember()) {
|
||||
if (gang.canRecruitMember() !== RecruitmentResult.Success) {
|
||||
const respectNeeded = gang.respectForNextRecruit();
|
||||
return (
|
||||
<Box display="flex" alignItems="center" sx={{ mx: 1 }}>
|
||||
|
||||
Reference in New Issue
Block a user