add support for no background cover
All checks were successful
Deploy / deploy (push) Successful in 6m44s

This commit is contained in:
Lee 2024-10-01 21:42:50 +01:00
parent 16f3284110
commit 0042bbf214

View File

@ -12,7 +12,7 @@ import { useEffect } from "react";
import { useToast } from "@/hooks/use-toast";
const formSchema = z.object({
backgroundCover: z.string().min(4).max(128),
backgroundCover: z.string().min(0).max(128),
});
export default function Settings() {
@ -22,10 +22,6 @@ export default function Settings() {
const form = useForm<z.infer<typeof formSchema>>({
resolver: zodResolver(formSchema),
defaultValues: {
// They will get overwritten later...
backgroundCover: "",
},
});
/**