diff --git a/frontend/src/app/components/NavBar.tsx b/frontend/src/app/components/NavBar.tsx index 570b8b06..04fd42cf 100644 --- a/frontend/src/app/components/NavBar.tsx +++ b/frontend/src/app/components/NavBar.tsx @@ -115,6 +115,9 @@ export default function NavBar() { + + + )} diff --git a/frontend/src/app/components/policies/claims/list/ClaimVoteStatus.tsx b/frontend/src/app/components/policies/claims/list/ClaimVoteStatus.tsx index b64fbf2c..d14a80b6 100644 --- a/frontend/src/app/components/policies/claims/list/ClaimVoteStatus.tsx +++ b/frontend/src/app/components/policies/claims/list/ClaimVoteStatus.tsx @@ -46,10 +46,15 @@ export default function ClaimVoteStatus({ strokeWidth?: number; withRedLine?: boolean; }) { - let approvals = claim.approvals; - let acceptances = approvals.filter((a: ClaimApproval) => a.approved).length; - let rejections = approvals.filter((a: ClaimApproval) => !a.approved).length; - let percent = (acceptances / (acceptances + rejections)) * 100; + const approvals = claim.approvals; + const acceptances = approvals.filter( + (a: ClaimApproval) => a.approved + ).length; + const rejections = approvals.filter( + (a: ClaimApproval) => !a.approved + ).length; + const percent = (acceptances / (acceptances + rejections)) * 100; + const rejectionsPercent = (rejections / (acceptances + rejections)) * 100; return (
= policy.claim_approval_threshold_percentage ? "success" - : "normal" + : "exception" } + showInfo={false} /> {withRedLine && (