diff --git a/src/Infiltration/ui/Victory.tsx b/src/Infiltration/ui/Victory.tsx index c53b13500..7e0a9041e 100644 --- a/src/Infiltration/ui/Victory.tsx +++ b/src/Infiltration/ui/Victory.tsx @@ -17,6 +17,7 @@ import { calculateTradeInformationRepReward, } from "../formulas/victory"; import { getEnumHelper } from "../../utils/EnumHelper"; +import { isFactionWork } from "../../Work/FactionWork"; interface IProps { StartingDifficulty: number; @@ -26,7 +27,8 @@ interface IProps { } export function Victory(props: IProps): React.ReactElement { - const [factionName, setFactionName] = useState("none"); + const defaultFaction = isFactionWork(Player.currentWork) ? Player.currentWork.factionName : "none"; + const [factionName, setFactionName] = useState(defaultFaction); function quitInfiltration(): void { handleInfiltrators(); @@ -79,9 +81,11 @@ export function Victory(props: IProps): React.ReactElement {