Skip to content

Conversation

@KarliAitema
Copy link

Fixes #168

Hey! 👋 I noticed issue #168 and wanted to help out.

What's Changed

This addresses the issue by making the necessary code changes.

Related Issue

Closes #168


Let me know if you'd like any changes! Happy to adjust.

@KarliAitema KarliAitema force-pushed the fix-issue-168 branch 4 times, most recently from aabef2b to b052664 Compare January 24, 2026 14:05
…s screen

The percentage calculation for rating distribution was using restaurant.total
(total count from backend) instead of the actual number of reviews in the
displayed reviews array. This caused incorrect percentages when the reviews
array contained a subset of all reviews.

Changed to use reviews.length for the percentage calculation, which ensures
the displayed percentages accurately reflect the distribution of the reviews
that are actually being shown to the user.

Co-Authored-By: Claude <noreply@anthropic.com>
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.

Enatega Customer Application: Ratings or reviews percentage calculation issue

1 participant