diff --git a/app/complete-profile/page.tsx b/app/complete-profile/page.tsx index 78c60fd4..df5def99 100644 --- a/app/complete-profile/page.tsx +++ b/app/complete-profile/page.tsx @@ -210,14 +210,9 @@ function RegisterComponent() { return; } - if (file.size > 10 * 1024 * 1024) { - setError('Image size must be less than 10MB'); - return; - } - // Compression options const options = { - maxSizeMB: 10, // Target max size in MB + maxSizeMB: 1, // Target max size in MB maxWidthOrHeight: 1024, // Resize to fit within this dimension useWebWorker: true, }; @@ -610,6 +605,24 @@ function RegisterComponent() { > } + function errorBlock() { + return
{error}
+{error}
-