ticket
This commit is contained in:
@@ -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'>
|
||||
|
||||
@@ -44,9 +44,9 @@ export type TicketMessageType = {
|
||||
id: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
role: {
|
||||
roles: {
|
||||
name: string;
|
||||
};
|
||||
}[];
|
||||
};
|
||||
attachments: {
|
||||
attachmentUrl: string;
|
||||
|
||||
Reference in New Issue
Block a user