Fix Admin Links, Piloten können nur mit Dispos schreiben

This commit is contained in:
PxlLoewe
2025-07-10 10:40:19 -07:00
parent b9eef5252e
commit 8e71571da9
7 changed files with 21 additions and 16 deletions

View File

@@ -223,7 +223,7 @@ export const SocialForm = ({
const router = useRouter();
const schema = z.object({
vatsimCid: z.number().min(1000).max(9999999),
vatsimCid: z.string(),
});
type IFormInput = z.infer<typeof schema>;
@@ -293,12 +293,10 @@ export const SocialForm = ({
<PaperPlaneIcon /> VATSIM-CID
</span>
<input
type="number"
type="text"
className="input input-bordered w-full"
defaultValue={user.vatsimCid as number | undefined}
{...form.register("vatsimCid", {
valueAsNumber: true,
})}
defaultValue={user.vatsimCid || undefined}
{...form.register("vatsimCid")}
/>
</label>
<p