From 9e9a695e2685881c3ef244190ef6010afedf8ff9 Mon Sep 17 00:00:00 2001 From: amishabagri Date: Mon, 3 Feb 2025 22:03:36 +0000 Subject: [PATCH] Updated commit with all the suggested changes --- frontend/components/Domain/Recipe/RecipeImageUploadBtn.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/components/Domain/Recipe/RecipeImageUploadBtn.vue b/frontend/components/Domain/Recipe/RecipeImageUploadBtn.vue index b76e56328..ad324507f 100644 --- a/frontend/components/Domain/Recipe/RecipeImageUploadBtn.vue +++ b/frontend/components/Domain/Recipe/RecipeImageUploadBtn.vue @@ -69,7 +69,7 @@ export default defineComponent({ try{ // Check if the file has an acceptable extension const allowedExtensions = [".jpg", ".jpeg", ".png", ".gif", ".webp",".heic",".avif"]; - const fileExtension = fileObject.name.split(".").pop()?.toLowerCase(); + const fileExtension = fileObject.name.split(".").pop()?.toLowerCase(); // If the file extension is not in the allowed extensions list, show an error message if (!fileExtension || !allowedExtensions.includes(`.${fileExtension}`)) {