From 520cc986845365b25273fb6db438d73589cc3e4e Mon Sep 17 00:00:00 2001 From: Muhammad Numan Date: Fri, 28 Jan 2022 12:39:24 +0500 Subject: [PATCH] fix: minimumFileSizeForCompress for 0 value --- src/Video/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Video/index.tsx b/src/Video/index.tsx index a4f5d62..f85075a 100644 --- a/src/Video/index.tsx +++ b/src/Video/index.tsx @@ -152,7 +152,7 @@ const Video: VideoCompressorType = { } else { modifiedOptions.maxSize = 640; } - if (options?.minimumFileSizeForCompress) { + if (options?.minimumFileSizeForCompress !== undefined) { modifiedOptions.minimumFileSizeForCompress = options?.minimumFileSizeForCompress; }