refactor some stuff

This commit is contained in:
Olivier Gagnon
2022-07-14 17:43:08 -04:00
parent a5088f1136
commit 0550bc188c
22 changed files with 149 additions and 119 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ export function CompanyLocation(props: IProps): React.ReactElement {
const pos = companyPosition;
if (pos instanceof CompanyPosition) {
p.startNEWWork(
p.startWork(
new CompanyWork({
singularity: false,
companyName: props.locName,
+1 -1
View File
@@ -24,7 +24,7 @@ type IProps = {
export function GymLocation(props: IProps): React.ReactElement {
function train(stat: ClassType): void {
props.p.startNEWWork(
props.p.startWork(
new ClassWork({
classType: stat,
location: props.loc.name,
+1 -1
View File
@@ -25,7 +25,7 @@ export function UniversityLocation(props: IProps): React.ReactElement {
const router = use.Router();
function take(classType: ClassType): void {
player.startNEWWork(
player.startWork(
new ClassWork({
classType: classType,
location: props.loc.name,