From b3622474d7b8de618ad0f24ed6946a96e5e333a2 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 6 Mar 2026 16:25:00 -0600 Subject: [PATCH] refac --- src/lib/utils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index 3b8a6a3d7..455594b65 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -318,7 +318,7 @@ async function resizeImageToDataURL( export const compressImage = async (imageUrl, maxWidth, maxHeight) => { return new Promise((resolve, reject) => { const img = new Image(); - img.onload = () => { + img.onload = async () => { let width = img.width; let height = img.height;