diff --git a/src/js/assignJS.js b/src/js/assignJS.js
index d04f9b90c0ffe33e6ccbdc986e2f34fc6e6659b9..36f3fa6f85600cab1b253dc73a307c597eb2a521 100644
--- a/src/js/assignJS.js
+++ b/src/js/assignJS.js
@@ -956,11 +956,11 @@ globalThis.assignmentTransition = function(slave, assignTo, passage) {
 	V.activeSlave = slave; // might be needed by the passage we're transitioning to (TODO: get rid of this)
 	assignJob(slave, assignTo);
 	if (V.showAssignToScenes === 1 && slave.fetish !== "mindbroken") {
-		if (assignTo === "Dairy" && ((V.dairyStimulatorsSetting >= 2) || (V.dairyFeedersSetting >= 2) || (V.dairyPregSetting >= 2))) {
+		if (assignTo === Job.DAIRY && ((V.dairyStimulatorsSetting >= 2) || (V.dairyFeedersSetting >= 2) || (V.dairyPregSetting >= 2))) {
 			detourThroughScene("Industrial Dairy Assignment Scene");
-		} else if (assignTo === "Dairy" && (V.dairyRestraintsSetting === 0 && V.activeSlave.devotion > 0)) {
+		} else if (assignTo === Job.DAIRY && (V.dairyRestraintsSetting === 0 && V.activeSlave.devotion > 0)) {
 			detourThroughScene("Free Range Dairy Assignment Scene");
-		} else if (assignTo === "Brothel") {
+		} else if (assignTo === Job.BROTHEL) {
 			detourThroughScene("Brothel Assignment Scene");
 		} else {
 			Engine.play(passage);