Skip to content

Commit

Permalink
bypass error when no gender was found in personality bio
Browse files Browse the repository at this point in the history
  • Loading branch information
memelotsqui committed Oct 24, 2023
1 parent 2946f38 commit 5347f4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Bio.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"){
Expand Down

0 comments on commit 5347f4f

Please sign in to comment.