From 0e3171925cc6b8d8300d419e204e75c39f1cdf29 Mon Sep 17 00:00:00 2001
From: Svornost <11434-svornost@users.noreply.gitgud.io>
Date: Mon, 20 Jul 2020 11:15:12 -0700
Subject: [PATCH] There is no DJ rep bonus if there is no DJ.

---
 src/js/economyJS.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/js/economyJS.js b/src/js/economyJS.js
index 034448782ce..2f5b97a3dd3 100644
--- a/src/js/economyJS.js
+++ b/src/js/economyJS.js
@@ -1,4 +1,8 @@
 globalThis.DJRepBonus = function() {
+	if (!S.DJ) {
+		return 0;
+	}
+
 	let value = 0;
 	const djIntel = S.DJ.intelligence + S.DJ.intelligenceImplant;
 	if (S.DJ.relationship === -3 && S.DJ.devotion > 50) {
-- 
GitLab