From 73befaa618915de543260b4d488c1fb683a900e5 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Sun, 20 Dec 2020 01:42:44 -0500 Subject: [PATCH] fix sluty check --- src/js/utilsFC.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/js/utilsFC.js b/src/js/utilsFC.js index 2ba7543b93f..5916307b593 100644 --- a/src/js/utilsFC.js +++ b/src/js/utilsFC.js @@ -3086,11 +3086,11 @@ App.Utils.alphabetizeIterable = function(iterable) { }; globalThis.isSlutty = function(clothing) { - const clothingArray = App.Data.clothes.nice.concat(App.Data.clothes.harsh); - return clothingArray.find(c => c.value === clothing).slutty; + const clothes = App.Data.clothes.nice.concat(App.Data.clothes.harsh).find(c => c.value === clothing); + return clothes && clothes.slutty; }; globalThis.isHumiliating = function(clothing) { - const clothingArray = App.Data.clothes.nice.concat(App.Data.clothes.harsh); - return clothingArray.find(c => c.value === clothing).humiliating; + const clothes = App.Data.clothes.nice.concat(App.Data.clothes.harsh).find(c => c.value === clothing); + return clothes && clothes.humiliating; }; -- GitLab