Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
fix: fix ts
Browse files Browse the repository at this point in the history
  • Loading branch information
rap2hpoutre committed Jul 11, 2022
1 parent 29f7c0b commit ef4a20c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Directory/Results.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Results = ({

if (selectedPsychologist !== psychologist.id) {
setSelectedPsychologist(psychologist.id);
trackEventClickOnPsychologistCard(psychologist.id);
trackEventClickOnPsychologistCard({ psychologistId: psychologist.id });
}
if (coordinates) {
setMapCenter({
Expand Down
6 changes: 5 additions & 1 deletion src/services/matomo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ function d(d: Dimension) {
return `dimension${d}`;
}

export function trackEventClickOnPsychologistCard({ psychologistId }) {
export function trackEventClickOnPsychologistCard({
psychologistId,
}: {
psychologistId: number;
}) {
push([
"trackEvent",
Category.Directory,
Expand Down

0 comments on commit ef4a20c

Please sign in to comment.