Fix populateBusinessSelect - remove continueBtn references

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
John Mizerek 2026-01-27 21:38:52 -08:00
parent 6f0229247f
commit 80aa65d7fa

View file

@ -366,13 +366,14 @@
const select = document.getElementById('businessSelect');
if (this.businesses.length === 0) {
select.innerHTML = '<option value="">No businesses yet - use wizard below</option>';
select.disabled = true;
document.getElementById('continueBtn').disabled = true;
// No businesses - add wizard option only
select.innerHTML = '<option value="">No businesses yet</option>';
const wizardOption = document.createElement('option');
wizardOption.value = 'NEW_WIZARD';
wizardOption.textContent = '✨ Create New Business';
select.appendChild(wizardOption);
} else {
select.innerHTML = '<option value="">Choose a business...</option>';
select.disabled = false;
document.getElementById('continueBtn').disabled = false;
this.businesses.forEach(biz => {
const option = document.createElement('option');
@ -385,8 +386,6 @@
const wizardOption = document.createElement('option');
wizardOption.value = 'NEW_WIZARD';
wizardOption.textContent = '✨ New Business Wizard';
wizardOption.style.fontWeight = 'bold';
wizardOption.style.color = 'var(--primary)';
select.appendChild(wizardOption);
}
},