Skip to content

Commit 7b54251

Browse files
authored
Merge pull request #99 from tempfiles-Team/dev
Dev
2 parents 98a26fa + 35e3ef6 commit 7b54251

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/checkpw/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { bindActionCreators } from 'redux';
88

99
import { FileBox, Button, SkeletonUI } from '../../components';
1010
import { actionCreators } from '../../state';
11-
import { getDate } from '../../utils';
11+
import { getDate, getFileSize } from '../../utils';
1212
import * as S from './styled';
1313

1414
export const CheckPasswordPage: React.FC = () => {
@@ -68,7 +68,7 @@ export const CheckPasswordPage: React.FC = () => {
6868
setLoading(false);
6969
setFileProps({
7070
filename: res.data.filename,
71-
size: res.data.size,
71+
size: getFileSize(res.data.size),
7272
uploadDate: getDate(res.data.uploadDate),
7373
});
7474
})

0 commit comments

Comments
 (0)