From e0416786f861ca9ef49b672cc7f7b42fd0bb2bab Mon Sep 17 00:00:00 2001 From: Yongjun Park Date: Fri, 24 Nov 2023 16:53:59 +0900 Subject: [PATCH] =?UTF-8?q?fix(LogtimeRecords):=20=EB=B6=84=20->=20ms=20?= =?UTF-8?q?=EB=8B=A8=EC=9C=84=20=EB=B3=80=EA=B2=BD=EC=97=90=20=EB=94=B0?= =?UTF-8?q?=EB=A5=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dashboard-contents/LogtimeAndProject/LogtimeRecords.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/Profile/dashboard-contents/LogtimeAndProject/LogtimeRecords.tsx b/app/src/Profile/dashboard-contents/LogtimeAndProject/LogtimeRecords.tsx index b95ba1c3..784145bd 100644 --- a/app/src/Profile/dashboard-contents/LogtimeAndProject/LogtimeRecords.tsx +++ b/app/src/Profile/dashboard-contents/LogtimeAndProject/LogtimeRecords.tsx @@ -10,6 +10,7 @@ import { DashboardContentLoading, DashboardContentNotFound, } from '@shared/components/DashboardContentView/Error'; +import { MILLISECONDS } from '@shared/constants/date'; import { numberWithUnitFormatter } from '@shared/utils/formatters/numberWithUnitFormatter'; const GET_LOGTIME_RECORDS_BY_LOGIN = gql(/* GraphQL */ ` @@ -47,7 +48,7 @@ export const LogtimeRecords = () => { const { logtimeRecords } = data.getPersonalGeneral; const seriesData = logtimeRecords.map(({ at, value }) => ({ x: at, - y: value, + y: value / MILLISECONDS.MINUTE, })); const series: ApexAxisChartSeries = [ { @@ -91,7 +92,7 @@ const LogtimeRecordsChart = ({ series }: LogtimeRecordsChartProps) => { `${numberWithUnitFormatter( Math.floor(value / 60), '시간', - )} ${numberWithUnitFormatter(value % 60, '분')}`, + )} ${numberWithUnitFormatter(Math.floor(value % 60), '분')}`, }, }, forecastDataPoints: {