From 5347f4f3b5847a0d01525ae131fec26f8bf78bb7 Mon Sep 17 00:00:00 2001 From: memelotsqui Date: Tue, 24 Oct 2023 17:55:01 -0600 Subject: [PATCH] bypass error when no gender was found in personality bio --- src/pages/Bio.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Bio.jsx b/src/pages/Bio.jsx index 5fda174a..3ee808f5 100644 --- a/src/pages/Bio.jsx +++ b/src/pages/Bio.jsx @@ -19,7 +19,7 @@ export const getBio = (baseCharacterData, personality) => { const weapon = personality.weapons[Math.floor(Math.random() * personality.weapons.length)] const hobby = personality.hobbies[Math.floor(Math.random() * personality.hobbies.length)] const profession = personality.professions[Math.floor(Math.random() * personality.professions.length)] - const heshe = personality.heShe[classType] + const heshe = personality.heShe[classType] || "HE"; const voiceKey = Object.keys(voices).find((v) => { if (heshe.toUpperCase() === "SHE"){