Skip to content

Commit 7dbe68c

Browse files
authored
Update constants.js
1 parent 6b81f2f commit 7dbe68c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const DEFAULT_UPLOAD_FILE_MAX_SIZE = 20 * 1024 * 1024; // 20 MB
6060
export const getUploadFileMaxSize = () => {
6161
const config = getConfig();
6262
const overrideMaxFileSizeMB = parseInt(config.OVERRIDE_UPLOAD_FILE_MAX_SIZE_IN_MB, 10);
63-
return !isNaN(overrideMaxFileSizeMB) && overrideMaxFileSizeMB > 0
63+
return !Number.isNaN(overrideMaxFileSizeMB) && overrideMaxFileSizeMB > 0
6464
? overrideMaxFileSizeMB * 1024 * 1024
6565
: DEFAULT_UPLOAD_FILE_MAX_SIZE;
6666
};

0 commit comments

Comments
 (0)