Skip to content

Commit

Permalink
[FE] Fix: Date생성 시 IOS에서 2020-6-7을 invalid라고 해석해서 06-07로 바꿔주는 함수 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
pkiop committed Dec 18, 2020
1 parent 0bfde11 commit d3957a6
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions fe/src/pages/MainPage/TransactionDateList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
} from 'stores/Transaction/transactionStoreUtils';
import { observer } from 'mobx-react-lite';
import * as types from 'types';
import dateUtil from 'utils/date';

const TransactionDateList = ({
list,
Expand All @@ -29,12 +30,14 @@ const TransactionDateList = ({
transactionList,
);
return (
<TransactionList
key={date}
date={new Date(date)}
onClick={onClick}
transactionList={formattedTransactionList}
/>
<>
<TransactionList
key={date}
date={new Date(dateUtil.addZero(date))}
onClick={onClick}
transactionList={formattedTransactionList}
/>
</>
);
};

Expand Down

0 comments on commit d3957a6

Please sign in to comment.