Skip to content

Commit

Permalink
update error message to include gif
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Vishal <[email protected]>
  • Loading branch information
vishalvivekm committed Sep 1, 2024
1 parent 5e60904 commit 95596dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sections/Community/Web-based-from/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const validatePictureUrl = (value) => {
const allowedImageExtensions = ["jpg", "jpeg", "png", "webp", "svg", "gif"];
const extension = value.split(".").pop().toLowerCase();
if (!allowedImageExtensions.includes(extension)) {
error = "URL must point to an image file (jpg, jpeg, png, svg or webp).";
error = "URL must point to an image file (jpg, jpeg, png, svg, webp or gif).";
}
} catch (_) {
error = "Please enter a URL to an image file.";
Expand Down

0 comments on commit 95596dd

Please sign in to comment.