diff --git a/app/components/admin/budgets_wizard/creation_timeline_component.html.erb b/app/components/admin/budgets_wizard/creation_timeline_component.html.erb
index f1ab8cd5a..3d0063898 100644
--- a/app/components/admin/budgets_wizard/creation_timeline_component.html.erb
+++ b/app/components/admin/budgets_wizard/creation_timeline_component.html.erb
@@ -1,8 +1,7 @@
- - >
- <%= t("admin.budgets_wizard.creation_timeline.budget") %>
-
- - >
- <%= t("admin.budgets_wizard.creation_timeline.groups") %>
-
+ <% steps.each do |step| %>
+ - >
+ <%= t("admin.budgets_wizard.creation_timeline.#{step}") %>
+
+ <% end %>
diff --git a/app/components/admin/budgets_wizard/creation_timeline_component.rb b/app/components/admin/budgets_wizard/creation_timeline_component.rb
index e7e0e717b..6db8d61e2 100644
--- a/app/components/admin/budgets_wizard/creation_timeline_component.rb
+++ b/app/components/admin/budgets_wizard/creation_timeline_component.rb
@@ -1,13 +1,13 @@
class Admin::BudgetsWizard::CreationTimelineComponent < ApplicationComponent
- attr_reader :step
+ attr_reader :current_step
- def initialize(step)
- @step = step
+ def initialize(current_step)
+ @current_step = current_step
end
private
- def step_groups?
- step == "groups"
+ def steps
+ %w[budget groups]
end
end