Skip to content

Commit 1a82b93

Browse files
committed
fix
1 parent 73703fe commit 1a82b93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/shopee_totalSpendMoney.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ export default {
6666
order.info_card.order_list_cards.forEach((card) => {
6767
card.items.forEach((item) => {
6868
totalDiscount +=
69-
(item.price_before_discount - item.item_price) / 100000;
69+
(item.price_before_discount - item.item_price) / 100000 || 0;
70+
console.log(totalDiscount);
7071
totalSpent += item.item_price / 100000;
7172
totalItems += item.amount;
7273
});

0 commit comments

Comments
 (0)