Skip to content

Commit c52c526

Browse files
ci: apply automated fixes
1 parent 003ddb4 commit c52c526

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/hooks/useCart.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@ export function useAddToCart() {
123123
let nextLines: CartDetail['lines']['nodes']
124124
if (existingIdx >= 0) {
125125
nextLines = previous.lines.nodes.map((l, i) =>
126-
i === existingIdx
127-
? { ...l, quantity: l.quantity + quantity }
128-
: l,
126+
i === existingIdx ? { ...l, quantity: l.quantity + quantity } : l,
129127
)
130128
} else {
131129
const lineTotal = String(Number(snap.price.amount) * quantity)

0 commit comments

Comments
 (0)