Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commented analytics #58

Merged
merged 2 commits into from
Dec 24, 2024
Merged

Commented analytics #58

merged 2 commits into from
Dec 24, 2024

Conversation

rohitmalhotra1420
Copy link
Collaborator

No description provided.

@rohitmalhotra1420 rohitmalhotra1420 self-assigned this Dec 24, 2024
Copy link

In components/Dashboard/LineChartSet/index.tsx:

  1. In the handleTimeFilter function, there are missing break statements in each case block.
  2. In the handleTimeFilter function, there should be a default case with a break statement.
  3. The setInterval(interval); inside the handleTillDate function is missing a closing bracket }.
  4. In the JSX code, <HorizontalBarChart components are missing closing > brackets.
  5. In the <Subscribers component, there is a missing </Subscribers> closing tag.

In components/Dashboard/OverViewSet/index.tsx:

  1. In the overViewData array, there is a typo in notifiactionsSent, it should be notificationsSent.
  2. In the overViewData array, the overViewData object is missing an opening curly brace { before the second image.
  3. There is a missing closing curly brace } at the end of the overViewData array.
  4. There is a missing closing bracket ) after setChatSent(chatResponse?.totalMessages);.
  5. In the React.useEffect hook, there is a missing closing parenthesis ) after setChatUsers(userResponse?.totalUsers);.

In components/Dashboard/Trending.tsx:

  1. The data array has an uneven number of objects, causing syntax errors.
  2. In the for loop for currentChannelDataResponse, there is an incomplete else block without a value.
  3. The for loop for weekBackSubscriberData is missing an opening curly brace { before the weekBackSubscriberData[key] = 0;.
  4. There is a missing closing curly brace } at the end of the for loop where weekBackSubscriberData[key] is set.
  5. The setSortedChannels statement inside the for loop is missing a closing parenthesis ).

After fixing these issues, please recheck the files. Let me know if you need further assistance.

@rohitmalhotra1420 rohitmalhotra1420 merged commit d920b91 into main Dec 24, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant