Spaces:
Build error
Build error
Update static/script.js
Browse files- static/script.js +2 -2
static/script.js
CHANGED
|
@@ -208,11 +208,11 @@ function displayCustomizationIngredients(ingredients) {
|
|
| 208 |
ingredientsDiv.textContent = selectedIngredientsText;
|
| 209 |
selectedArea.appendChild(ingredientsDiv);
|
| 210 |
|
| 211 |
-
// Ensure the submit button and custom instructions box appear
|
| 212 |
if (!document.querySelector('.submit-customization-button')) {
|
| 213 |
let submitButton = document.createElement('button');
|
| 214 |
submitButton.className = 'submit-customization-button';
|
| 215 |
-
submitButton.textContent = 'Submit
|
| 216 |
submitButton.onclick = submitCustomizationIngredients;
|
| 217 |
chatMessages.appendChild(submitButton);
|
| 218 |
|
|
|
|
| 208 |
ingredientsDiv.textContent = selectedIngredientsText;
|
| 209 |
selectedArea.appendChild(ingredientsDiv);
|
| 210 |
|
| 211 |
+
// Ensure the submit button and custom instructions box appear once and do not disappear
|
| 212 |
if (!document.querySelector('.submit-customization-button')) {
|
| 213 |
let submitButton = document.createElement('button');
|
| 214 |
submitButton.className = 'submit-customization-button';
|
| 215 |
+
submitButton.textContent = 'Submit';
|
| 216 |
submitButton.onclick = submitCustomizationIngredients;
|
| 217 |
chatMessages.appendChild(submitButton);
|
| 218 |
|