summaryrefslogtreecommitdiff
path: root/app/presenters
diff options
context:
space:
mode:
Diffstat (limited to 'app/presenters')
-rw-r--r--app/presenters/ci/build_presenter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/presenters/ci/build_presenter.rb b/app/presenters/ci/build_presenter.rb
index 4005840ce58..33056a809b7 100644
--- a/app/presenters/ci/build_presenter.rb
+++ b/app/presenters/ci/build_presenter.rb
@@ -36,7 +36,7 @@ module Ci
end
def execute_in
- [0, scheduled_at - Time.now].max
+ scheduled? && scheduled_at && [0, scheduled_at - Time.now].max
end
private