From 3b4cc3bff9192986e466d4da5f8b93815480a60d Mon Sep 17 00:00:00 2001 From: yihong0618 Date: Wed, 26 Apr 2023 18:31:08 +0800 Subject: [PATCH] fix: #396 #403 --- src/components/LocationStat/index.jsx | 2 +- src/components/RunTable/RunRow.jsx | 2 +- src/utils/utils.js | 2 +- vercel.json | 7 +++++++ 4 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 vercel.json diff --git a/src/components/LocationStat/index.jsx b/src/components/LocationStat/index.jsx index 544d9bae89d..da6f6f44130 100644 --- a/src/components/LocationStat/index.jsx +++ b/src/components/LocationStat/index.jsx @@ -9,7 +9,7 @@ import LocationSummary from './LocationSummary'; import PeriodStat from './PeriodStat'; const LocationStat = ({ changeYear, changeCity, changeTitle }) => ( -
+

{CHINESE_LOCATION_INFO_MESSAGE_FIRST} diff --git a/src/components/RunTable/RunRow.jsx b/src/components/RunTable/RunRow.jsx index 634807946a6..2eabaa0de1b 100644 --- a/src/components/RunTable/RunRow.jsx +++ b/src/components/RunTable/RunRow.jsx @@ -4,7 +4,7 @@ import { formatPace, titleForRun, formatRunTime } from 'src/utils/utils'; import styles from './style.module.scss'; const RunRow = ({ runs, run, locateActivity, runIndex, setRunIndex }) => { - const distance = (run.distance / 1000.0).toFixed(1); + const distance = (run.distance / 1000.0).toFixed(2); const pace = run.average_speed; const paceParts = pace ? formatPace(pace) : null; diff --git a/src/utils/utils.js b/src/utils/utils.js index b0b695a1ad8..ec660825d29 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -7,7 +7,7 @@ import { MUNICIPALITY_CITIES_ARR, NEED_FIX_MAP, RUN_TITLES } from './const'; const titleForShow = (run) => { const date = run.start_date_local.slice(0, 11); - const distance = (run.distance / 1000.0).toFixed(1); + const distance = (run.distance / 1000.0).toFixed(2); let name = 'Run'; if (run.name.slice(0, 7) === 'Running') { name = 'run'; diff --git a/vercel.json b/vercel.json new file mode 100644 index 00000000000..e686f303b99 --- /dev/null +++ b/vercel.json @@ -0,0 +1,7 @@ +{ + "git": { + "deploymentEnabled": { + "gh-pages": false + } + } +}