This commit is contained in:
hamid zarghami
2025-02-23 13:05:43 +03:30
parent 79d061488d
commit b4a9b86f84
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ const TicketDetail: FC = () => {
{
getMessages.data?.data?.messages.map((item: TicketMessageType) => {
if (item?.author?.role?.name === 'user') {
if (item?.author?.roles[0]?.name === 'user') {
return (
<div key={item.id} className='mt-6 xl:text-sm text-xs bg-[#F6F7FA] p-6 rounded-3xl rounded-tr-none xl:max-w-[70%] max-w-[90%]'>
<div className='leading-7'>
+2 -2
View File
@@ -44,9 +44,9 @@ export type TicketMessageType = {
id: string;
firstName: string;
lastName: string;
role: {
roles: {
name: string;
};
}[];
};
attachments: {
attachmentUrl: string;