Invoices crash fix 2

pull/47/head
ShahanaFarooqui 6 years ago
parent 3e2056fd95
commit 8ca7360dfd

@ -14,7 +14,7 @@ exports.listInvoices = (req, res, next) => {
error: (undefined === body || search_idx > -1) ? 'Error From Server!' : body.error
});
} else {
if (undefine !== body.invoices) {
if (undefined !== body.invoices) {
body.invoices.forEach(invoice => {
invoice.creation_date_str = (undefined === invoice.creation_date) ? '' : common.convertTimestampToDate(invoice.creation_date);
invoice.settle_date_str = (undefined === invoice.settle_date) ? '' : common.convertTimestampToDate(invoice.settle_date);

Loading…
Cancel
Save