Skip to content

Commit

Permalink
[fix] 토너먼트 선물 한 개일 때 분기문 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hysong4u committed Feb 28, 2024
1 parent c224b1f commit 4730752
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public ResponseEntity<SuccessResponse<?>> getTournamentGiftList(@UserId Long use
Boolean isOwner = memberService.isOwner(userId, roomId);
List<TournamentListsResponseDto> tournamentGiftList = giftService.getTournamentGiftList(userId, roomId);

if (tournamentGiftList.isEmpty()) {
if (tournamentGiftList.isEmpty() || tournamentGiftList.size() == 1) {
return SuccessResponse.ok(new OwnerResponseDto(isOwner));
}
return SuccessResponse.ok(tournamentGiftList);
Expand Down

0 comments on commit 4730752

Please sign in to comment.