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) => { getMessages.data?.data?.messages.map((item: TicketMessageType) => {
if (item?.author?.role?.name === 'user') { if (item?.author?.roles[0]?.name === 'user') {
return ( 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 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'> <div className='leading-7'>
+2 -2
View File
@@ -44,9 +44,9 @@ export type TicketMessageType = {
id: string; id: string;
firstName: string; firstName: string;
lastName: string; lastName: string;
role: { roles: {
name: string; name: string;
}; }[];
}; };
attachments: { attachments: {
attachmentUrl: string; attachmentUrl: string;