codingblocks/qit.cloud

View on GitHub
website/src/hooks/eventTrackingHook.js

Summary

Maintainability
A
1 hr
Test Coverage

Function eventTracking has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const eventTracking = mirror.hook((action, getState) => {
  switch (action.type) {
    case 'player/addToQueue':
      const toAddAudioUrl = action.data.audioUrl
      gtag('event', 'add_to_queue', {
Severity: Minor
Found in website/src/hooks/eventTrackingHook.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status