From 55c05c3be9801ef176126e664dfdd2d2193afd34 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Fri, 29 Mar 2024 10:37:33 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- ee/tabby-ui/app/(dashboard)/profile/components/avatar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee/tabby-ui/app/(dashboard)/profile/components/avatar.tsx b/ee/tabby-ui/app/(dashboard)/profile/components/avatar.tsx index 19cc8210910b..a576261f384a 100644 --- a/ee/tabby-ui/app/(dashboard)/profile/components/avatar.tsx +++ b/ee/tabby-ui/app/(dashboard)/profile/components/avatar.tsx @@ -33,7 +33,7 @@ export const Avatar = () => { const onPreviewAvatar = (e: ChangeEvent) => { const file = e.target.files ? e.target.files[0] : null - + if (file) { const fileSizeInKB = parseFloat((file.size / 1024).toFixed(2)) if (fileSizeInKB > MAX_UPLOAD_SIZE_KB) {