Skip to content

Commit dfa9b05

Browse files
CopilotFrancisca105
andcommitted
fix: reset loading state when file size validation fails
Co-authored-by: Francisca105 <65908870+Francisca105@users.noreply.github.com>
1 parent fea7b43 commit dfa9b05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend/src/composables/useImageUpload.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export function useImageUpload() {
7272
// Check file size (10MB limit)
7373
if (blob.size > MAX_FILE_SIZE) {
7474
setError("Image file size must be less than 10MB");
75+
isLoadingImageUrl.value = false;
7576
return;
7677
}
7778

0 commit comments

Comments
 (0)