Skip to content

Commit

Permalink
fix pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-astra-via committed Jan 26, 2024
1 parent 948aaf1 commit edc7843
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,11 @@ export default async function (manager: Manager, settings: ComponentSettings) {
})

manager.addEventListener('ecommerce', event => {
const ev = mapEcommerceEvent(event.name)
if (ev) {
handler(event, settings, ev)
if (typeof event.name === 'string') {
const ev = mapEcommerceEvent(event.name)
if (ev) {
handler(event, settings, ev)
}
}
})
}

0 comments on commit edc7843

Please sign in to comment.