Skip to content

Commit 431ad0e

Browse files
committed
show evaluated graph when elig is determined
1 parent a9ce066 commit 431ad0e

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/ui/screens/benefit-page/BenefitPageScreen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const BenefitPageScreen = ({
3535
)
3636
}
3737
{featureFlags.showMermaidRuleGraph &&
38-
<BenefitPageRequirements t={t} isDesktop={isDesktop} evalGraph={matchingGraph} benefitPageData={benefitPageData} />
38+
<BenefitPageRequirements t={t} validatedStatus={validatedStatus} isDesktop={isDesktop} evalGraph={matchingGraph} />
3939
}
4040
</VBox>
4141
</VBox>

src/ui/screens/benefit-page/components/BenefitPageRequirements.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import BenefitPageMarkdownElement from './BenefitPageMarkDownElement';
66
import RegularButton from '@/ui/shared-components/buttons/RegularButton';
77
import FlowChart from '@/ui/shared-components/flow-chart/FlowChart';
88

9-
const BenefitPageRequirements = ({ t, isDesktop, evalGraph, benefitPageData }) => {
9+
const BenefitPageRequirements = ({ t, validatedStatus, isDesktop, evalGraph }) => {
1010
const [open, setOpen] = useState(false);
1111
const objectIcon = `${process.env.PUBLIC_URL}/assets/images/benefit-pages/tree.svg`;
1212

@@ -46,7 +46,7 @@ const BenefitPageRequirements = ({ t, isDesktop, evalGraph, benefitPageData }) =
4646
</HBox>
4747
{
4848
open && (
49-
<FlowChart evalGraph={evalGraph} />
49+
<FlowChart evalGraph={evalGraph} validatedStatus={validatedStatus} />
5050
)
5151
}
5252
</VBox>

src/ui/shared-components/flow-chart/FlowChart.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ mermaid.initialize({
7070
});
7171

7272

73-
export default function FlowChart({ evalGraph }) {
73+
export default function FlowChart({ evalGraph, validatedStatus }) {
7474
const { t } = useTranslation();
7575

7676
const [svgContent, setSvgContent] = useState("");
77-
const [graphTypeEval, setGraphTypeEval] = useState(false);
77+
const [graphTypeEval, setGraphTypeEval] = useState(validatedStatus);
7878
const printLabels = true;
7979
const orientationVertical = false;
8080

0 commit comments

Comments
 (0)