bugs fix tampil data diagnosis
This commit is contained in:
@@ -191,14 +191,15 @@ export default function Detail() {
|
||||
<Stack direction='row' spacing={2} sx={marginBottom1}>
|
||||
<Typography variant='subtitle2' sx={style3} gutterBottom>Diagnosis</Typography>
|
||||
<Typography variant='subtitle2' sx={style2} gutterBottom>
|
||||
{claimRequests?.diagnosis?.length > 0 ? (
|
||||
{claimRequests?.diagnosis ? claimRequests?.diagnosis.length > 0 ? (
|
||||
<ul>
|
||||
{claimRequests?.diagnosis.map((diagnosisItem, index) => (
|
||||
<li key={index}>{diagnosisItem.code} - {diagnosisItem.name}</li>
|
||||
// Replace 'name' with the property you want to display
|
||||
))}
|
||||
</ul>
|
||||
) : (
|
||||
) : null
|
||||
: (
|
||||
<p>No diagnosis available.</p>
|
||||
)}
|
||||
</Typography>
|
||||
|
||||
@@ -49,7 +49,7 @@ export type DetailClaimRequest = {
|
||||
reason : string,
|
||||
files : file[],
|
||||
benefit_data : BenefitData[],
|
||||
diagnosis : Diagnosis[],
|
||||
diagnosis : Diagnosis[] | undefined,
|
||||
request_log : RequestLogType | undefined,
|
||||
reason_decline : string,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user