Skip to content

Commit

Permalink
fix: ImageUrlSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Nov 26, 2024
1 parent 8b3c7e7 commit b185823
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const defaultValues = {
imageUrl: "",
urlName: "test",
contact: "",
description: "",
} satisfies CreateGuildForm;

const CreateGuildFormProvider = ({ children }: PropsWithChildren) => {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/schemas/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const NameSchema = z
.string()
.max(255, "Maximum name length is 255 characters");

export const ImageUrlSchema = z.string().url().max(255);
export const ImageUrlSchema = z.literal("").or(z.string().url().max(255));

export const LogicSchema = z.enum(["AND", "OR", "ANY_OF"]);

Expand Down

0 comments on commit b185823

Please sign in to comment.