Fix Admin Links, Piloten können nur mit Dispos schreiben
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user