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.
1 parent 632e1bb commit b17ecdaCopy full SHA for b17ecda
src/components/Attachment/FileAttachment.js
@@ -54,15 +54,11 @@ const goToURL = (url) => {
54
const getFileSizeDisplayText = (size) => {
55
if (!size) return;
56
57
- if (size < 1000) {
58
- return `${size} KB`;
59
- }
60
-
61
if (size < 1000 * 1000) {
62
- return `${size / 1000} MB`;
+ return `${Math.floor(size / 10) / 100} KB`;
63
}
64
65
- return `${size / (1000 * 1000)} GB`;
+ return `${Math.floor(size / 10000) / 100} MB`;
66
};
67
68
const FileAttachment = ({
0 commit comments