Skip to content

Commit

Permalink
Record accordion-child-label as "undefined" when childlabel is null (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mpelzsherman authored May 12, 2021
1 parent 844d6d7 commit d5fb357
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/applications/static-pages/subscribeAccordionEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ export default function subscribeAccordionEvents() {

if (e.target.dataset?.childlabel) {
data['accordion-child-label'] = e.target.dataset.childlabel;
} else {
data['accordion-child-label'] = undefined;
}

recordEvent(data);
Expand Down

0 comments on commit d5fb357

Please sign in to comment.