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

Fix ytd chart issues divide by 0 #821

Merged
merged 1 commit into from Jan 25, 2024
Merged

Conversation

Isaac-GC
Copy link
Collaborator

In the Dashboard, when selecting "Year to Date", an error occurs as the graph is trying to generate off an array that only contains a single item. As the graph is trying to figure out where to place the item, the count of items (1 in this case) has an item subtracted from it... accidentally resulting in a divide-by-zero edge case

@Isaac-GC Isaac-GC force-pushed the fix_ytd_chart_issues_divide_by_0 branch from 7d5193f to 808116d Compare January 25, 2024 01:05
@Isaac-GC Isaac-GC merged commit 9c92a4f into master Jan 25, 2024
4 checks passed
@Isaac-GC Isaac-GC deleted the fix_ytd_chart_issues_divide_by_0 branch January 25, 2024 01:21
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.

None yet

1 participant