Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 3 additions & 20 deletions app/record/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,26 +316,9 @@ export default function RecordScreen() {
}}
>
{[
{
label: "소요시간",
value: formatDuration(
recordDetail?.durationSeconds ?? durationSec,
),
},
{
label: "고도",
value:
recordDetail?.ascentMeters != null
? `${Math.round(recordDetail.ascentMeters)}Nm`
: "--",
},
{
label: "칼로리",
value:
recordDetail?.calories != null
? `${recordDetail.calories}kcal`
: "--",
},
{ label: "소요시간", value: "3시간 24분" },
{ label: "고도", value: "642m" },
{ label: "칼로리", value: "1128kcal" },
Comment on lines +319 to +321

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

테스트를 위해 통계 데이터를 하드코딩한 부분은 실제 서비스에 반영되기 전에 동적 데이터를 사용하도록 되돌려야 합니다.

추가로, 기존 코드에서 고도 단위가 ${Math.round(recordDetail.ascentMeters)}Nm로 표기되어 Nm이라는 오타가 있었습니다. 이를 올바른 단위인 m으로 수정하여 복원하는 것을 제안합니다.

Suggested change
{ label: "소요시간", value: "3시간 24분" },
{ label: "고도", value: "642m" },
{ label: "칼로리", value: "1128kcal" },
{ label: "소요시간", value: formatDuration(recordDetail?.durationSeconds ?? durationSec) },
{ label: "고도", value: recordDetail?.ascentMeters != null ? Math.round(recordDetail.ascentMeters) + "m" : "--" },
{ label: "칼로리", value: recordDetail?.calories != null ? recordDetail.calories + "kcal" : "--" },

].map((stat) => (
<View key={stat.label} style={styles.statItem}>
<Text style={styles.statLabel}>{stat.label}</Text>
Expand Down
Loading