Skip to content

Commit 6419016

Browse files
committed
Update StatusService.php
1 parent 3f430a1 commit 6419016

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

includes/Services/StatusService.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ public static function update_onboarding_restart_status(): void {
9292

9393
// Get flow data
9494
$flow_data = get_option( Options::get_option_name( 'flow' ) );
95+
$active_flow = $flow_data['activeFlow'];
9596

9697
if ( isset( $flow_data['onboardingRetries'] ) && ! empty( $flow_data['onboardingRetries'] ) ) {
9798
// Increment the total onboarding tries
@@ -133,6 +134,7 @@ public static function update_onboarding_restart_status(): void {
133134

134135
delete_option( Options::get_option_name( 'flow' ) );
135136
$flow_data_copy = Flows::get_data();
137+
$flow_data_copy['activeFlow'] = $active_flow;
136138
$flow_data_copy['onboardingRetries']['retryCount'] = $current_retry_count;
137139

138140
// Update the flow data with the incremented total onboarding tries count and add to db

0 commit comments

Comments
 (0)