Closed lindskogen closed 6 years ago
Error in stats#show:
stats#show
Found the bug here: https://github.com/cthit/hubbIT/blob/develop/app/controllers/stats_controller.rb#L77-L83
@session can be present but @sessions_within_timeframe can be empty. The values will be set to nil instead of zero since the else clause won't run.
@session
@sessions_within_timeframe
nil
Closed as of #169
Error in
stats#show
:Found the bug here: https://github.com/cthit/hubbIT/blob/develop/app/controllers/stats_controller.rb#L77-L83
@session
can be present but@sessions_within_timeframe
can be empty. The values will be set tonil
instead of zero since the else clause won't run.