Skip to content

Commit d09453e

Browse files
committed
Do not suggest rejecting goals when autoApproveGoal option is set
1 parent c6f8317 commit d09453e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/app/engine/process_continue_next_action.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ func (e *Engine) actionsToContinueFromStop() (actions []*ContinueAction, hints [
127127
}
128128

129129
if e.currentState.HasGameEventByTeam(state.GameEvent_POSSIBLE_GOAL, team) &&
130-
!e.currentState.HasGameEventByTeam(state.GameEvent_INVALID_GOAL, team) {
130+
!e.currentState.HasGameEventByTeam(state.GameEvent_INVALID_GOAL, team) &&
131+
!e.gameConfig.AutoApproveGoals {
131132
continueActionRejectGoal := createContinueAction(
132133
ContinueAction_REJECT_GOAL,
133134
team,

0 commit comments

Comments
 (0)