From a3659d26a4f2ccbb1976b6fa77f310a46521a072 Mon Sep 17 00:00:00 2001 From: jp01186 <jp01186@surrey.ac.uk> Date: Tue, 4 May 2021 19:00:19 -0700 Subject: [PATCH] fix --- app/controllers/habits_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/habits_controller.rb b/app/controllers/habits_controller.rb index 62b3c08..ce82289 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." } -- GitLab