Skip to content

Commit 7c81d9f

Browse files
committed
fix: keep launch progress persistent between tabs
1 parent 3f8c0c1 commit 7c81d9f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

assets/apps/dashboard/src/Components/Content/LaunchProgress.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ const LaunchProgress = () => {
5353
const autoDetected = checks.autoDetected || {};
5454
const savedProgress = checks.savedProgress || {};
5555

56-
// State to track completion for all steps
5756
const [stepsState, setStepsState] = useState({
5857
identity: initializeStepState(
5958
identitySteps,
@@ -80,6 +79,11 @@ const LaunchProgress = () => {
8079
// Save progress whenever it changes
8180
useEffect(() => {
8281
const timeoutId = setTimeout(() => {
82+
// Update neveDash object to keep it in sync
83+
if (neveDash.launchProgress) {
84+
neveDash.launchProgress.savedProgress = stepsState;
85+
}
86+
8387
apiFetch({
8488
path: '/nv/v1/dashboard/launch-progress',
8589
method: 'POST',

0 commit comments

Comments
 (0)