diff --git a/src/pages/VisProgPage/VisProg.tsx b/src/pages/VisProgPage/VisProg.tsx index a083bbf..a31665f 100644 --- a/src/pages/VisProgPage/VisProg.tsx +++ b/src/pages/VisProgPage/VisProg.tsx @@ -186,10 +186,17 @@ function graphReducer() { * @constructor */ function VisProgPage() { + const [programValidity, setProgramValidity] = useState(true); + const sIndex = useFlowStore.getState().severityIndex; + + useEffect(() => { + setProgramValidity(useFlowStore.getState().isProgramValid) + }, [sIndex]); + return ( <> - + ) }