Invoices crash fix 2

This commit is contained in:
ShahanaFarooqui 2018-11-25 09:25:22 -05:00
parent 3e2056fd95
commit 8ca7360dfd

View file

@ -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);