Skip to content
Snippets Groups Projects
Commit 86fd6e39 authored by Correia, Sebastião B (PG/T - Comp Sci & Elec Eng)'s avatar Correia, Sebastião B (PG/T - Comp Sci & Elec Eng)
Browse files

Back Checks done

parent b1ff9680
No related branches found
No related tags found
No related merge requests found
Pipeline #30974 failed
...@@ -85,7 +85,7 @@ class HabitsController < ApplicationController ...@@ -85,7 +85,7 @@ class HabitsController < ApplicationController
end end
end end
if @habit.streak > @habit.max_streak || @habit.max_streak.nil? if @habit.max_streak.nil? || @habit.streak > @habit.max_streak
@habit.max_streak = @habit.streak @habit.max_streak = @habit.streak
@habit.save @habit.save
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment