diff --git a/src/js/utilsFC.js b/src/js/utilsFC.js index 2ba7543b93f03045332e48b3670b5c48677a46a3..5916307b5939b35798d40453cb77e03135aafdd2 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; };