Default to neutral community rating if ratings are present

This commit is contained in:
xynngh 2020-10-02 12:45:47 +04:00
parent 07dff35e35
commit 8fff93cf3d
1 changed files with 1 additions and 2 deletions

View File

@ -107,8 +107,7 @@ public class NumberInfoService {
} else if (communityItem.getPositiveRatingsCount() > communityItem.getNeutralRatingsCount()
+ communityItem.getNegativeRatingsCount()) {
numberInfo.rating = NumberInfo.Rating.POSITIVE;
} else if (communityItem.getNeutralRatingsCount() > communityItem.getPositiveRatingsCount()
+ communityItem.getNegativeRatingsCount()) {
} else {
numberInfo.rating = NumberInfo.Rating.NEUTRAL;
}
}