We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87eacc1 commit b454a3cCopy full SHA for b454a3c
kleros-app/src/lib/atlas/providers/AtlasProvider.tsx
@@ -281,7 +281,7 @@ export const AtlasProvider: React.FC<{ config: AtlasConfig; children?: React.Rea
281
if (!restrictions.restriction.allowedMimeTypes.includes(file.type)) throw new Error("Unsupported file type.");
282
if (file.size > restrictions.restriction.maxSize)
283
throw new Error(
284
- `File too big. Max allowed size : ${((restrictions.restriction.maxSize / 1024) * 1024).toFixed(2)} mb.`
+ `File too big. Max allowed size : ${(restrictions.restriction.maxSize / (1024 * 1024)).toFixed(2)} mb.`
285
);
286
}
287
setIsUploadingFile(true);
0 commit comments