fix javascript bug
This commit is contained in:
parent
3617475e83
commit
317614f4a8
@ -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']){
|
||||
|
Loading…
Reference in New Issue
Block a user