We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73703fe commit 1a82b93Copy full SHA for 1a82b93
scripts/shopee_totalSpendMoney.js
@@ -66,7 +66,8 @@ export default {
66
order.info_card.order_list_cards.forEach((card) => {
67
card.items.forEach((item) => {
68
totalDiscount +=
69
- (item.price_before_discount - item.item_price) / 100000;
+ (item.price_before_discount - item.item_price) / 100000 || 0;
70
+ console.log(totalDiscount);
71
totalSpent += item.item_price / 100000;
72
totalItems += item.amount;
73
});
0 commit comments