fix javascript bug

This commit is contained in:
Greg Gauthier 2024-06-25 23:37:50 +01:00
parent 3617475e83
commit 317614f4a8

View File

@ -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 += `<strong>Profile:</strong><br/>`;
var profile = data.profile;
resultSection.innerHTML += ` - Name: ${profile.name}<br/>`;
@ -33,7 +32,7 @@ document.getElementById('characterForm').addEventListener('submit', function(eve
resultSection.innerHTML += ` - Skin Tone: ${profile.skintone}<br/>`;
}
resultSection.innerHTML += "<br/>";
}
// Display animal-stock if it exists
if(data['animal-stock']){