We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 98a26fa + 35e3ef6 commit 7b54251Copy full SHA for 7b54251
src/pages/checkpw/index.tsx
@@ -8,7 +8,7 @@ import { bindActionCreators } from 'redux';
8
9
import { FileBox, Button, SkeletonUI } from '../../components';
10
import { actionCreators } from '../../state';
11
-import { getDate } from '../../utils';
+import { getDate, getFileSize } from '../../utils';
12
import * as S from './styled';
13
14
export const CheckPasswordPage: React.FC = () => {
@@ -68,7 +68,7 @@ export const CheckPasswordPage: React.FC = () => {
68
setLoading(false);
69
setFileProps({
70
filename: res.data.filename,
71
- size: res.data.size,
+ size: getFileSize(res.data.size),
72
uploadDate: getDate(res.data.uploadDate),
73
});
74
})
0 commit comments