Skip to content

Commit

Permalink
bob martin would be proud
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhuff committed Nov 19, 2024
1 parent 8f953a4 commit 475c649
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/organisms/ErrorRecoveryFlows/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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))
)
}

Expand Down

0 comments on commit 475c649

Please sign in to comment.