Skip to content

Commit

Permalink
Fix: 챌린지 목표값이 기본 목표값으로 리턴하는 오류 수정(비교값으로 리턴되어야됨) (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
hee9841 authored Dec 25, 2024
1 parent fc345c1 commit 923270f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public static ChallengesResponse from(ChallengeWithCondition challengeWithCondit
challenge.formatExpectedTime(),
challenge.imageUrl(),
condition.goalMetricType(),
condition.goalMetricType().equals(GoalMetricType.DISTANCE) ? calMeterToKm(condition.goalValue()) : null,
condition.goalMetricType().equals(GoalMetricType.TIME) ? condition.goalValue() : null
condition.goalMetricType().equals(GoalMetricType.DISTANCE) ? calMeterToKm(condition.comparisonValue()) : null,
condition.goalMetricType().equals(GoalMetricType.TIME) ? condition.comparisonValue() : null
);
}

Expand Down

0 comments on commit 923270f

Please sign in to comment.