Fix invoice company dropdown by removing stale email column references

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Krao Hasanee
2026-03-27 09:50:55 -04:00
parent 65b8b2ce2c
commit bc6915a549
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -25,7 +25,7 @@ export default function CreateInvoice() {
const net30 = new Date(Date.now() + 30 * 24 * 60 * 60 * 1000).toISOString().split('T')[0];
useEffect(() => {
supabase.from('companies').select('id, name, email').order('name').then(({ data }) => setCompanies(data || []));
supabase.from('companies').select('id, name').order('name').then(({ data }) => setCompanies(data || []));
}, []);
useEffect(() => {
@@ -145,7 +145,6 @@ export default function CreateInvoice() {
{selectedCompany && (
<div style={{ padding: '12px 14px', background: 'var(--bg)', borderRadius: 8, border: '1px solid var(--border)', fontSize: 13 }}>
<div style={{ fontWeight: 600 }}>{selectedCompany.name}</div>
{selectedCompany.email && <div style={{ color: 'var(--text-muted)', marginTop: 2 }}>{selectedCompany.email}</div>}
</div>
)}
</div>