Skip to content

Commit

Permalink
Fix track property
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur791004 committed Dec 12, 2024
1 parent 9b3ac06 commit 43e8785
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const useTrackFilters = ( { preselectedFilters, isBigSkyEligible, isMultiSelecti
( result, filterSlug, index ) => ( {
...result,
// The property cannot contain `-` character.
[ `filters_${ filterSlug.replace( '-', '_' ) }` ]: `${ getCategoryType(
[ `filters_${ filterSlug.replaceAll( '-', '_' ) }` ]: `${ getCategoryType(
filterSlug
) }:${ index }`,
} ),
Expand Down

0 comments on commit 43e8785

Please sign in to comment.