File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
app/src/organisms/ErrorRecoveryFlows Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ import {
33
33
BANNER_TEXT_CONTAINER_STYLE ,
34
34
BANNER_TEXT_CONTENT_STYLE ,
35
35
RECOVERY_MAP ,
36
+ STACKER_ERROR_KINDS ,
36
37
} from './constants'
37
38
import { useErrorName } from './hooks'
38
39
import { RecoveryInterventionModal , StepInfo } from './shared'
@@ -94,6 +95,8 @@ export function RecoverySplash(props: RecoverySplashProps): JSX.Element | null {
94
95
const { proceedToRouteAndStep, handleMotionRouting } = routeUpdateActions
95
96
const { reportErrorEvent } = analytics
96
97
98
+ const isStackerError = STACKER_ERROR_KINDS . includes ( errorKind )
99
+
97
100
const buildTitleHeadingDesktop = ( ) : JSX . Element => {
98
101
return (
99
102
< StyledText desktopStyle = "bodyLargeSemiBold" >
@@ -148,8 +151,16 @@ export function RecoverySplash(props: RecoverySplashProps): JSX.Element | null {
148
151
)
149
152
} )
150
153
. then ( ( ) => handleMotionRouting ( true ) )
151
- . then ( ( ) => recoveryCommands . homePipetteZAxes ( ) )
152
- . finally ( ( ) => handleMotionRouting ( false ) )
154
+ . then ( ( ) => {
155
+ if ( isStackerError ) {
156
+ return recoveryCommands . homeExceptPlungers ( )
157
+ } else {
158
+ return recoveryCommands . homePipetteZAxes ( )
159
+ }
160
+ } )
161
+ . finally ( ( ) => {
162
+ void handleMotionRouting ( false )
163
+ } )
153
164
}
154
165
handleConditionalClick ( onClick )
155
166
}
You can’t perform that action at this time.
0 commit comments