Skip to content

Commit

Permalink
chore: remove hasTrackingConsent for custom events
Browse files Browse the repository at this point in the history
  • Loading branch information
SannyNguyenHung committed Feb 22, 2024
1 parent 12b7bf2 commit 93e6c16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/routes/shared/formular.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,13 @@ export const action = async ({ request }: ActionFunctionArgs) => {
});

const customEventName = flowController.getMeta(stepId)?.customEventName;
if (customEventName)
if (customEventName) {
sendCustomEvent({
request,
eventName: customEventName,
properties: validationResult.data,
});
}

const returnTo = formData.get("_returnTo");
const destination =
Expand Down
3 changes: 2 additions & 1 deletion app/routes/shared/vorabcheck.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,13 @@ export const action = async ({ request }: ActionFunctionArgs) => {
});

const customEventName = flowController.getMeta(stepId)?.customEventName;
if (customEventName)
if (customEventName) {
sendCustomEvent({
request,
eventName: customEventName,
properties: validationResult.data,
});
}

const destination =
flowController.getNext(stepId)?.url ?? flowController.getInitial().url;
Expand Down

0 comments on commit 93e6c16

Please sign in to comment.