diff --git a/webapp/src/pages/Dashboard.jsx b/webapp/src/pages/Dashboard.jsx index aa7daaf4..3bb86210 100644 --- a/webapp/src/pages/Dashboard.jsx +++ b/webapp/src/pages/Dashboard.jsx @@ -60,8 +60,8 @@ export default function Dashboard() { useEffect(() => { async function checkActiveStatus() { - const active = await isActive(); - setActive(active); + const i = await isActive(); + setActive(i.data.is_active); } checkActiveStatus(); }, []); @@ -126,7 +126,7 @@ export default function Dashboard() { - {active && ( + {!active && ( {modes.map(mode => ( - )} - {!active && ( + ) : (