From 0ce715bc60593f3fdc742f076b02ba38f9ccf696 Mon Sep 17 00:00:00 2001 From: Ivan Ray Altomera Date: Tue, 16 Jul 2019 15:42:15 +0800 Subject: [PATCH] fix: eslint --- src/container/SalesContainer/index.js | 4 +--- src/services/tailorder.js | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/container/SalesContainer/index.js b/src/container/SalesContainer/index.js index 41530f7..086876f 100644 --- a/src/container/SalesContainer/index.js +++ b/src/container/SalesContainer/index.js @@ -676,9 +676,7 @@ export default class SalesContainer extends React.Component { defaultReceipt.clear(); for (let i = 0; i < items.length; i++) { - defaultReceipt.add( - orderItemToReceiptItem(items[i]) - ); + defaultReceipt.add(orderItemToReceiptItem(items[i])); } }; diff --git a/src/services/tailorder.js b/src/services/tailorder.js index 0845208..70beb47 100644 --- a/src/services/tailorder.js +++ b/src/services/tailorder.js @@ -68,7 +68,7 @@ exports.orderItemToReceiptItem = function(item) { item_name: item.item_name, price: item.rate, qty: item.qty, - date: item.creation + date: item.creation, }; };