Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
wwayne committed Mar 29, 2024
1 parent 0cbde28 commit 07d572f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ee/tabby-ui/app/(dashboard)/profile/components/avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ export const Avatar = () => {
if (file) {
const fileSizeInKB = parseFloat((file.size / 1024).toFixed(2))
if (fileSizeInKB > MAX_UPLOAD_SIZE_KB) {
return toast.error(`The image you are attempting to upload is too large. Please ensure the file size is under ${MAX_UPLOAD_SIZE_KB}KB and try again.`)
return toast.error(
`The image you are attempting to upload is too large. Please ensure the file size is under ${MAX_UPLOAD_SIZE_KB}KB and try again.`
)
}

const reader = new FileReader()
Expand Down

0 comments on commit 07d572f

Please sign in to comment.