reps defects

This commit is contained in:
2024-06-05 06:35:13 +01:00
parent 53e96b18bd
commit ef2e41a377
19 changed files with 262 additions and 201 deletions
+21 -8
View File
@@ -14,6 +14,7 @@ import MyRepresentations from "./myportal/myrepresentations";
import SearchCases from "./myportal/searchcases";
import UploadFile from "./myportal/uploadFile";
import WatchedCases from "./myportal/watchedcases";
import _ from "lodash";
const MyPortal = (props) => {
const { showFileUpload, showLoginCheck } = props;
@@ -122,7 +123,12 @@ const MyPortal = (props) => {
}
/>
)} */}
{!isLPA &&
_.has(props.awaitingSubmission, [
"awaitingSubmissionFromBlob",
"@odata.count",
]) &&
props.awaitingSubmission
.awaitingSubmissionFromBlob[
"@odata.count"
@@ -150,14 +156,21 @@ const MyPortal = (props) => {
myReps={false}
/>
)}
{props.myRepresentations.myRepresentations[
"@odata.count"
] > 0 && (
<MyRepresentations
myRepresentations={props.myRepresentations}
isLPA={isLPA}
/>
)}
{props.myRepresentations.hasOwnProperty(
"myRepresentations"
) &&
typeof props.myRepresentations
.myRepresentations != "undefined" &&
props.myRepresentations.myRepresentations[
"@odata.count"
] > 0 && (
<MyRepresentations
myRepresentations={
props.myRepresentations
}
isLPA={isLPA}
/>
)}
{props.myRepresentations.mySubmittedReps
.mySubmittedReps.length > 0 && (