Skip to content

Fix stale getHelpfulCount dependency in the CourseReviews sort memo #985

Description

@RUKAYAT-CODER

Overview
The useMemo at src/components/courses/CourseReviews.tsx (lines 69-80) maps reviews through getHelpfulCount but omits it from the deps with an eslint-disable (line 78), so 'most helpful' sorting can use stale helpful counts after a vote until another control changes. Include getHelpfulCount (stabilized) in the deps.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions