We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 796b18a commit f0ae443Copy full SHA for f0ae443
components/forms/shorten-link-form-base.tsx
@@ -36,7 +36,7 @@ export function ShortenLinkFormBase({
36
defaultValues: {
37
name: "",
38
link: "",
39
- customSuffix: "",
+ customSuffix: undefined,
40
},
41
});
42
schemas/index.ts
@@ -27,7 +27,7 @@ export const shortenLinkSchema = z.object({
27
.string()
28
.min(3, { message: "Custom suffix is too short" })
29
.optional()
30
- .or(z.literal("")),
+ .or(z.undefined()),
31
32
33
export const changeCustomSuffixSchema = z.object({
0 commit comments