Skip to content
Snippets Groups Projects
Commit 4776bd11 authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'simplify-a-bit' into 'pregmod-master'

simplify

See merge request !8677
parents 62163f15 dc33c43a
No related branches found
No related tags found
1 merge request!8677simplify
......@@ -75,7 +75,7 @@ globalThis.fetusAbnormalities = function(fetus) {
const abnormalitySpans = [];
for (const gene in fetus.genetics.geneticQuirks) {
const geneObj = quirkNames.get(gene);
const quirkName = (geneObj) ? geneObj.abbreviation || gene : gene;
const quirkName = (geneObj && geneObj.abbreviation) ? geneObj.abbreviation : gene;
const quirkColor = (geneObj && geneObj.goodTrait) ? "green" : "red";
if (fetus.genetics.geneticQuirks[gene] === 2) {
abnormalitySpans.push(App.UI.DOM.makeElement("span", quirkName, quirkColor));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment