From 83984b7e8d6c5339b67fcc245524ce0074d83223 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Thu, 31 Oct 2019 20:48:11 -0400
Subject: [PATCH] writtenTitle should be def outside of lispCheck

---
 src/js/assayJS.js | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/src/js/assayJS.js b/src/js/assayJS.js
index dc2a097d59a..0e92c0bb7e8 100644
--- a/src/js/assayJS.js
+++ b/src/js/assayJS.js
@@ -528,16 +528,6 @@ window.Enunciate = function Enunciate(slave) {
 		if (slave.custom.title !== undefined && slave.custom.title !== "") {
 			V.titleEnunciate = slave.custom.title;
 		}
-		if (V.PC.customTitle !== undefined) {
-			V.writtenTitle = V.PC.customTitle;
-		} else if (V.PC.title !== 0) {
-			V.writtenTitle = "Master";
-		} else {
-			V.writtenTitle = "Mistress";
-		}
-		if (slave.custom.title !== undefined && slave.custom.title !== "" && slave.rudeTitle === 0) {
-			V.writtenTitle = slave.custom.title;
-		}
 		V.sayEnunciate = "say";
 		V.sEnunciate = "s";
 		V.SEnunciate = "S";
@@ -561,6 +551,17 @@ window.Enunciate = function Enunciate(slave) {
 		V.xEnunciate = "x";
 		V.XEnunciate = "X";
 	}
+	// writtenTitle should be defined outside of the lispCheck.
+	if (V.PC.customTitle !== undefined) {
+		V.writtenTitle = V.PC.customTitle;
+	} else if (V.PC.title !== 0) {
+		V.writtenTitle = "Master";
+	} else {
+		V.writtenTitle = "Mistress";
+	}
+	if (slave.custom.title !== undefined && slave.custom.title !== "" && slave.rudeTitle === 0) {
+		V.writtenTitle = slave.custom.title;
+	}
 };
 
 /**
-- 
GitLab