Skip to content

Fixed bug in doSetAverageRating function#21

Open
tara-97 wants to merge 1 commit intosimonholmes:chapter-06from
tara-97:chapter-06
Open

Fixed bug in doSetAverageRating function#21
tara-97 wants to merge 1 commit intosimonholmes:chapter-06from
tara-97:chapter-06

Conversation

@tara-97
Copy link
Copy Markdown

@tara-97 tara-97 commented Sep 29, 2020

The doSetAverageRating is unable to update the rating when the last review is deleted as the reviews has length 0 for which it skips the if clause which update the rating.

The doSetAverageRating is unable to update the rating when the last review is deleted as the reviews has length 0 for which it skips the if clause which update the rating.
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