Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: 챌린지 목표값이 기본 목표값으로 리턴하는 오류 수정(비교값으로 리턴되어야됨)
Browse files Browse the repository at this point in the history
hee9841 committed Dec 25, 2024

Verified

This commit was signed with the committer’s verified signature.
1 parent fc345c1 commit 6ce8145
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
);
}

0 comments on commit 6ce8145

Please sign in to comment.