Skip to content

Commit fb3b53e

Browse files
committed
hotfix: rating이 null인 문제 수정
1 parent 94be476 commit fb3b53e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/ssu/eatssu/domain/user/dto/MyMealReviewResponse.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ public static MyMealReviewResponse from(Review review) {
8686
Ratings ratings = review.getRatings();
8787
Integer rating = review.getRating();
8888

89-
if (ratings != null) {
90-
rating = ratings.getMainRating() != null ? ratings.getMainRating() : rating;
89+
if (rating == null) {
90+
rating = ratings.getMainRating();
9191
}
9292

9393
return MyMealReviewResponse

0 commit comments

Comments
 (0)