feat: Adsterra integration, code splitting, cleanup, Onidel affiliate
This commit is contained in:
@@ -111,7 +111,6 @@ const InvoiceEditor = () => {
|
||||
const currencyData = await response.json();
|
||||
setCurrencies(currencyData);
|
||||
} catch (error) {
|
||||
console.error('Failed to load currencies:', error);
|
||||
// Fallback to basic currencies
|
||||
setCurrencies([
|
||||
{ code: 'IDR', name: 'Indonesian Rupiah', symbol: 'Rp' },
|
||||
@@ -165,7 +164,7 @@ const InvoiceEditor = () => {
|
||||
setPdfPageSize(savedPageSize);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Failed to load saved invoice:', error);
|
||||
// Failed to load saved invoice
|
||||
}
|
||||
}, [searchParams]);
|
||||
|
||||
@@ -176,7 +175,7 @@ const InvoiceEditor = () => {
|
||||
try {
|
||||
localStorage.setItem('currentInvoice', JSON.stringify(invoiceData));
|
||||
} catch (error) {
|
||||
console.error('Failed to save invoice:', error);
|
||||
// Failed to save invoice
|
||||
}
|
||||
}
|
||||
}, [invoiceData, createNewCompleted]);
|
||||
@@ -227,7 +226,7 @@ const InvoiceEditor = () => {
|
||||
try {
|
||||
localStorage.setItem('pdfPageSize', pdfPageSize);
|
||||
} catch (error) {
|
||||
console.error('Failed to save PDF page size:', error);
|
||||
// Failed to save PDF page size
|
||||
}
|
||||
}, [pdfPageSize]);
|
||||
|
||||
@@ -619,7 +618,6 @@ const InvoiceEditor = () => {
|
||||
// Navigate to preview page
|
||||
navigate('/invoice-preview');
|
||||
} catch (error) {
|
||||
console.error('Failed to save invoice data:', error);
|
||||
alert('Failed to save invoice data. Please try again.');
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user