Skip to content

Commit

Permalink
[PPI-976] add/remove item accepts list of products
Browse files Browse the repository at this point in the history
  • Loading branch information
lysy-vlc committed Dec 11, 2023
1 parent 20352f2 commit b53a207
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/services/e-commerce/e-commerce.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ import { PaqService } from '../paqService/paq.service';
import { Product } from '../../interfaces/product'
import { PaymentInformation } from '../../interfaces/payment'

export function addEcommerceItem(product: Product) {
export function addEcommerceItem(products: Product[]) {
PaqService.push([
TRACK_EVENT.ADD_ECOMMERCE_ITEM,
[product],
products,
])
}

export function removeEcommerceItem(product: Product) {
export function removeEcommerceItem(products: Product) {
PaqService.push([
TRACK_EVENT.REMOVE_ECOMMERCE_ITEM,
[product]
products
])
}

Expand Down

0 comments on commit b53a207

Please sign in to comment.