Skip to content

Commit

Permalink
fix(LogtimeRecords): 분 -> ms 단위 변경에 따른 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yoopark committed Nov 24, 2023
1 parent 7600597 commit e041678
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 */ `
Expand Down Expand Up @@ -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 = [
{
Expand Down Expand Up @@ -91,7 +92,7 @@ const LogtimeRecordsChart = ({ series }: LogtimeRecordsChartProps) => {
`${numberWithUnitFormatter(
Math.floor(value / 60),
'시간',
)} ${numberWithUnitFormatter(value % 60, '분')}`,
)} ${numberWithUnitFormatter(Math.floor(value % 60), '분')}`,
},
},
forecastDataPoints: {
Expand Down

0 comments on commit e041678

Please sign in to comment.