File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
discounts/javascript/discount/default/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export function generateCartRun(input) {
21
21
throw new Error('No cart lines found');
22
22
}
23
23
const maxCartLine = input.cart.lines.reduce((maxLine, line) => {
24
- if (line.cost.subtotalAmount > maxLine.cost.subtotalAmount) {
24
+ if (line.cost.subtotalAmount.amount > maxLine.cost.subtotalAmount.amount ) {
25
25
return line;
26
26
}
27
27
return maxLine;
@@ -89,7 +89,7 @@ export function generateCartRun(input: CartInput): CartLinesDiscountsGenerateRun
89
89
}
90
90
91
91
const maxCartLine = input.cart.lines.reduce((maxLine, line) => {
92
- if (line.cost.subtotalAmount > maxLine.cost.subtotalAmount) {
92
+ if (line.cost.subtotalAmount.amount > maxLine.cost.subtotalAmount.amount ) {
93
93
return line;
94
94
}
95
95
return maxLine;
You can’t perform that action at this time.
0 commit comments