Skip to content

Commit b454a3c

Browse files
fix: size-calculation
1 parent 87eacc1 commit b454a3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kleros-app/src/lib/atlas/providers/AtlasProvider.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ export const AtlasProvider: React.FC<{ config: AtlasConfig; children?: React.Rea
281281
if (!restrictions.restriction.allowedMimeTypes.includes(file.type)) throw new Error("Unsupported file type.");
282282
if (file.size > restrictions.restriction.maxSize)
283283
throw new Error(
284-
`File too big. Max allowed size : ${((restrictions.restriction.maxSize / 1024) * 1024).toFixed(2)} mb.`
284+
`File too big. Max allowed size : ${(restrictions.restriction.maxSize / (1024 * 1024)).toFixed(2)} mb.`
285285
);
286286
}
287287
setIsUploadingFile(true);

0 commit comments

Comments
 (0)