diff --git a/ee/tabby-ui/app/(dashboard)/profile/components/avatar.tsx b/ee/tabby-ui/app/(dashboard)/profile/components/avatar.tsx
index a576261f384a..59dd64611016 100644
--- a/ee/tabby-ui/app/(dashboard)/profile/components/avatar.tsx
+++ b/ee/tabby-ui/app/(dashboard)/profile/components/avatar.tsx
@@ -6,7 +6,7 @@ import { toast } from 'sonner'
import { graphql } from '@/lib/gql/generates'
import { useMe } from '@/lib/hooks/use-me'
import { useMutation } from '@/lib/tabby/gql'
-import { delay } from '@/lib/utils'
+import { cn, delay } from '@/lib/utils'
import { Button } from '@/components/ui/button'
import { IconCloudUpload, IconSpinner } from '@/components/ui/icons'
import { Separator } from '@/components/ui/separator'
@@ -65,11 +65,10 @@ export const Avatar = () => {
await delay(1000)
mutateAvatar(data.me.id)
toast.success('Successfully updated your profile picture!')
-
await delay(200)
- setUploadedImgString('')
}
+ setUploadedImgString('')
setIsSubmitting(false)
}
@@ -96,7 +95,11 @@ export const Avatar = () => {
alt="avatar to be uploaded"
/>
)}
-
{`Square image recommended. Accepted file types: .png, .jpg. Max file size: ${MAX_UPLOAD_SIZE_KB}KB.`}