diff --git a/web/chargen.js b/web/chargen.js index 3233d50..5830fad 100644 --- a/web/chargen.js +++ b/web/chargen.js @@ -19,7 +19,6 @@ document.getElementById('characterForm').addEventListener('submit', function(eve resultSection.innerHTML = ''; // After existing code, add below lines for the profile rendering - if(data.profile){ resultSection.innerHTML += `Profile:
`; var profile = data.profile; resultSection.innerHTML += ` - Name: ${profile.name}
`; @@ -33,7 +32,7 @@ document.getElementById('characterForm').addEventListener('submit', function(eve resultSection.innerHTML += ` - Skin Tone: ${profile.skintone}
`; } resultSection.innerHTML += "
"; - } + // Display animal-stock if it exists if(data['animal-stock']){