Skip to content

Commit

Permalink
Fix undefined summary crash in TrackInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
RZR-UA committed Aug 8, 2023
1 parent 16c4876 commit 4f99891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion map/src/drawer/components/tracks/TrackInfo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function TrackInfo({ file }) {
if (summary?.timeMoving) {
timeMoving = 'Time moving: ' + toHHMMSS(summary?.timeMoving);
}
if (summary?.diffElevationDown > 0 || summary.diffElevationUp > 0) {
if (summary?.diffElevationDown > 0 || summary?.diffElevationUp > 0) {
updownhill =
'Uphill/downhill: ' +
Number(summary?.diffElevationUp ?? 0).toFixed(0) +
Expand Down

0 comments on commit 4f99891

Please sign in to comment.