diff --git a/app/controllers/habits_controller.rb b/app/controllers/habits_controller.rb index 62b3c08ccd8793a7f066058cb33096deccebabd2..ce82289f24edb26b88ebe39f6bc1cb31cd9f5791 100644 --- a/app/controllers/habits_controller.rb +++ b/app/controllers/habits_controller.rb @@ -24,7 +24,7 @@ class HabitsController < ApplicationController @habit = Habit.new(habit_params) @habit.user_id = current_user.id @habit.streak = 0 - @habit.max_streak = 47 + @habit.max_streak = 0 respond_to do |format| if @habit.save format.html { redirect_to :root, notice: "Habit was successfully created." }