Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions frontend/nyaysetu-frontend/src/hooks/useFaceRecognition.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,5 @@ export const useFaceRecognition = () => {
loginWithFace
};
};

.catch(err => console.error("Promise.all failed:", err));
Original file line number Diff line number Diff line change
Expand Up @@ -2211,7 +2211,7 @@ function PartiesTab({ caseData, caseId, onUpdate }) {
}
};

const respondentEmailMissing = !caseData.respondentEmail || caseData.respondentEmail.trim() === '';
const respondentEmailMissing = !caseData.respondentEmail || caseData.respondentEmail.trim().length === 0;

return (
<div style={{ display: 'flex', flexDirection: 'column', gap: '2rem' }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default function ClientChatPage() {
const response = await messageAPI.getMessages(caseId);
const fetchedMessages = response.data.map(msg => ({
id: msg.id,
sender: (msg.senderId == selectedContact?.id) ? 'client' : (msg.senderId === myId ? 'me' : 'client'), // Fallback to client if not me
sender: (msg.senderId === selectedContact?.id) ? 'client' : (msg.senderId === myId ? 'me' : 'client'), // Fallback to client if not me
text: msg.message,
time: new Date(msg.timestamp).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }),
attachments: msg.attachments || []
Expand Down
Loading