diff --git a/app/views/habits/_form.html.erb b/app/views/habits/_form.html.erb index a5b4a55b8b..d905bb2a19 100644 --- a/app/views/habits/_form.html.erb +++ b/app/views/habits/_form.html.erb @@ -16,8 +16,8 @@ <%= f.text_field :name %>
- <%= f.label :type %>
- <%= f.select :habit_type, options_for_select([['Always',1], ['Daily',2], ['One-time',3]]) %> + <%= f.label :habit_type %>
+ <%= f.select :habit_type, options_for_select([['Always',1], ['Daily',2], ['One-time',3]], @habit.habit_type) %>
<%= f.label :notes %>