Skip to content

Commit 5945d61

Browse files
giacomosardoalessani
authored andcommitted
fix: remove adjustments from GTM provider
1 parent 0c82d8d commit 5945d61

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

components/data/GTMProvider/index.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ export const GTMProvider: React.FC<GTMProviderProps> = ({
141141
})
142142
).line_items?.filter((line_item) => {
143143
return (
144-
line_item.item_type === "skus" ||
145-
line_item.item_type === "gift_cards" ||
146-
line_item.item_type === "adjustments"
144+
line_item.item_type === "skus" || line_item.item_type === "gift_cards"
147145
)
148146
})
149147

@@ -223,9 +221,7 @@ export const GTMProvider: React.FC<GTMProviderProps> = ({
223221
})
224222
).line_items?.filter((line_item) => {
225223
return (
226-
line_item.item_type === "skus" ||
227-
line_item.item_type === "gift_cards" ||
228-
line_item.item_type === "adjustments"
224+
line_item.item_type === "skus" || line_item.item_type === "gift_cards"
229225
)
230226
})
231227

@@ -262,9 +258,7 @@ export const GTMProvider: React.FC<GTMProviderProps> = ({
262258
})
263259
).line_items?.filter((line_item) => {
264260
return (
265-
line_item.item_type === "skus" ||
266-
line_item.item_type === "gift_cards" ||
267-
line_item.item_type === "adjustments"
261+
line_item.item_type === "skus" || line_item.item_type === "gift_cards"
268262
)
269263
})
270264

0 commit comments

Comments
 (0)