diff --git a/package.json b/package.json
index 3e9efdc..b8768ef 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "no-copy-frontend",
- "version": "0.110.0",
+ "version": "0.111.0",
"private": true,
"scripts": {
"dev": "next dev -p 2999",
diff --git a/src/app/ui/file-page/violation-table/case-complaint.tsx b/src/app/ui/file-page/violation-table/case-complaint.tsx
index 1b5569b..1190e53 100644
--- a/src/app/ui/file-page/violation-table/case-complaint.tsx
+++ b/src/app/ui/file-page/violation-table/case-complaint.tsx
@@ -1,7 +1,7 @@
'use client'
import { ViolationFileDetail } from '@/app/hooks/react-query/useFileViolations';
-import {useActionState, useEffect, useState, SetStateAction} from 'react';
+import { useActionState, useEffect, useState, SetStateAction } from 'react';
import { useTranslations } from 'next-intl';
import { createComplaint, fetchComplainInfo, MatchStatus } from '@/app/actions/violationActions';
import { toast } from 'sonner';
@@ -350,60 +350,48 @@ export default function CaseComplaint({ selectedViolation, updateStatusHandler,
return (
- {complainInfo?.body?.content ? (
- <>
- {complainInfo.body.content.map((item: complaintInfo) => {
- return (
-
-
-
-
-
-
{t('Status')}:
-
- {item.status}
-
-
-
-
-
{t('date-of-creation')}:
-
- {item.created_at ? `${formatDate(item.created_at)}: ${formatDateTime(item.created_at)}` : '---'}
-
-
-
-
-
{t('date-of-update')}:
-
- {item.updated_at ? `${formatDate(item.updated_at)}: ${formatDateTime(item.updated_at)}` : '---'}
-
-
-
-
-
{t('text-of-the-complaint')}:
-
-
-
- {item.complaint_text}
-
-
-
+ {complainInfo?.body ? (
+
+
+
+
+
COM-{complainInfo.body?.id}
- );
- })}
- >
+
+
+
+
{t('Status')}:
+
+ {complainInfo.body?.status}
+
+
+
+
+
{t('date-of-creation')}:
+
+ {complainInfo.body?.created_at
+ ? `${formatDate(complainInfo.body.created_at)}: ${formatDateTime(complainInfo.body.created_at)}`
+ : '---'}
+
+
+
+
+
{t('date-of-update')}:
+
+ {complainInfo.body?.updated_at
+ ? `${formatDate(complainInfo.body.updated_at)}: ${formatDateTime(complainInfo.body.updated_at)}`
+ : '---'}
+
+
+
+
+
{t('text-of-the-complaint')}:
+
+ {complainInfo.body?.complaint_text}
+
+
+
+
) : (
{t('no-information-about-the-complaint')}