From ccd1cbfb0276a2cad8c3e7aee0d41f350eea852f Mon Sep 17 00:00:00 2001
From: Svornost <11434-svornost@users.noreply.gitgud.io>
Date: Thu, 27 Aug 2020 18:06:20 -0700
Subject: [PATCH] Reduce the scope of slaveCost and make it const

---
 src/markets/specialSlave.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/markets/specialSlave.js b/src/markets/specialSlave.js
index 603c5724efe..f3bc54bda6b 100644
--- a/src/markets/specialSlave.js
+++ b/src/markets/specialSlave.js
@@ -7,7 +7,6 @@ App.Markets.specialSlave = function() {
 	let p;
 	const heroSlaves = App.Utils.buildHeroArray();
 	let slave;
-	let slaveCost;
 	let selectedID;
 
 	// Element to show the entire catalog when selected, or a blurb for a random slave
@@ -88,7 +87,7 @@ App.Markets.specialSlave = function() {
 		const el = new DocumentFragment();
 		let p;
 		const {his} = getPronouns(slave);
-		slaveCost = heroSlaveCost(slave, 20000);
+		const slaveCost = heroSlaveCost(slave, 20000);
 		App.UI.DOM.appendNewElement("p", el, App.Desc.longSlave(slave, {market: "generic"}));
 
 		p = document.createElement("p");
-- 
GitLab