mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 14:59:16 +02:00
BUGFIX: Wrong plural form in modal of coding contract (#1939)
This commit is contained in:
@@ -9,6 +9,7 @@ import { EventEmitter } from "../../utils/EventEmitter";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import TextField from "@mui/material/TextField";
|
||||
import Button from "@mui/material/Button";
|
||||
import { pluralize } from "../../utils/I18nUtils";
|
||||
|
||||
interface CodingContractProps {
|
||||
c: CodingContract;
|
||||
@@ -63,8 +64,9 @@ export function CodingContractModal(): React.ReactElement {
|
||||
<Modal open={contract !== null} onClose={close}>
|
||||
<CopyableText variant="h4" value={contract.c.type} />
|
||||
<Typography>
|
||||
You are attempting to solve a Coding Contract. You have {contract.c.getMaxNumTries() - contract.c.tries} tries
|
||||
remaining, after which the contract will self-destruct.
|
||||
You are attempting to solve a Coding Contract. You have{" "}
|
||||
{pluralize(contract.c.getMaxNumTries() - contract.c.tries, "try", "tries")} remaining, after which the contract
|
||||
will self-destruct.
|
||||
</Typography>
|
||||
<br />
|
||||
<Typography>{description}</Typography>
|
||||
|
||||
Reference in New Issue
Block a user