Skip to content

Commit

Permalink
fix: 파란뱃지 이슈 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
h-beeen committed Mar 23, 2024
1 parent 14246e6 commit 57bb955
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@ class InoculationService(

return vaccinations.map { vaccination ->
val vaccineOrders = hashMap[vaccination.vaccineName]?.toHashSet()?.toList() ?: listOf()
val isCompleted = vaccineOrders.any { order -> order == vaccination.maxOrder }

InoculationSimpleResponse(
vaccination.diseaseName,
vaccination.vaccineName,
vaccination.minOrder,
vaccination.maxOrder,
false,
isCompleted,
vaccineOrders,
)
}.toList()
Expand Down

0 comments on commit 57bb955

Please sign in to comment.