diff --git a/app/src/organisms/ErrorRecoveryFlows/index.tsx b/app/src/organisms/ErrorRecoveryFlows/index.tsx index 22691ec176d..fff4acb5426 100644 --- a/app/src/organisms/ErrorRecoveryFlows/index.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/index.tsx @@ -74,8 +74,8 @@ export function useErrorRecoveryFlows( const isValidERStatus = (status: RunStatus | null): boolean => { return ( status !== null && - VALID_ER_RUN_STATUSES.includes(status) && - (status === RUN_STATUS_AWAITING_RECOVERY || hasSeenAwaitingRecovery) + (status === RUN_STATUS_AWAITING_RECOVERY || + (VALID_ER_RUN_STATUSES.includes(status) && hasSeenAwaitingRecovery)) ) }