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;