From 85e0bed19621a1b151213d3472e83f5b239f25a0 Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 14 Feb 2024 14:35:36 -0800 Subject: [PATCH] compress images on web correctly --- src/screens/Onboarding/StepProfile/SelectImageButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/Onboarding/StepProfile/SelectImageButton.tsx b/src/screens/Onboarding/StepProfile/SelectImageButton.tsx index e76b966f97..79c061c002 100644 --- a/src/screens/Onboarding/StepProfile/SelectImageButton.tsx +++ b/src/screens/Onboarding/StepProfile/SelectImageButton.tsx @@ -35,7 +35,7 @@ export function SelectImageButton() { path: image.path, }) } - image = await compressIfNeeded(image) + image = await compressIfNeeded(image, 1000000) LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut) setAvatar(prev => ({