fixed NewReport form
This commit is contained in:
@@ -56,7 +56,7 @@ export const Chat = () => {
|
||||
(d) => d.userId !== session.data?.user.id && !chats[d.userId],
|
||||
);
|
||||
const filteredAircrafts = aircrafts?.filter(
|
||||
(a) => a.userId !== session.data?.user.id && dispatcherConnected && !chats[a.userId],
|
||||
(a) => a.userId !== session.data?.user.id && !chats[a.userId],
|
||||
);
|
||||
|
||||
const btnActive = pilotConnected || dispatcherConnected;
|
||||
|
||||
@@ -40,9 +40,11 @@ export const NewReportForm = ({
|
||||
defaultValues: {
|
||||
reportedUserId: defaultValues?.reportedUserId || "",
|
||||
senderUserId: session.data?.user.id || "",
|
||||
reviewerComment: null,
|
||||
reviewerUserId: null,
|
||||
},
|
||||
});
|
||||
|
||||
console.log(form.formState.errors);
|
||||
return (
|
||||
<form
|
||||
className="flex flex-wrap gap-3"
|
||||
|
||||
Reference in New Issue
Block a user