fix: check for !res.error instead of res.success when handling API responses.

This commit is contained in:
Galindo97
2026-02-12 14:13:14 -06:00
parent ab5181f803
commit 7d2f5fec44

View File

@@ -557,7 +557,7 @@
`/v1/a76/invoice-settings/${InvoiceTopFieldsFormData.invoice_type}?operation_type=${InvoiceTopFieldsFormData.operation_type}&company_id=${companyStore.activeCompany.id}`
);
if (res.success && res.data) {
if (!res.error && res.data) {
const settings = res.data.settings || {};
// Mark as loaded even if empty to prevent retries for the same combination