Skip to content

Commit

Permalink
added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlstarr committed Jul 31, 2024
1 parent e5bbd84 commit 351f119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/components/ui/ToggleComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ToggleComponent = (props: IToggleComponent) => {
const { onChange, checked, themeColor, disabled, layerName } = props;

useEffect(() => {
// The class and id is tied to Google Analytics. And allows WRI to track clicks on the layer checkboxes and the layer name.
// The class and id is tied to Google Analytics. Allows WRI to track clicks on the layer checkboxes and the layer name.
if (!layerName) return;

const layerElement = document.querySelector(`[data-layer-name="${layerName}"]`);
Expand Down

0 comments on commit 351f119

Please sign in to comment.