parent
b21b6aa1a6
commit
abbbf42715
2 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@
|
|||
<div class="condition">
|
||||
<% if nm[:is_popped] %>
|
||||
<div class="pop-timer">
|
||||
<% pop = instance.pops.find { |pop| pop.name == nm[:name].parameterize } %>
|
||||
<% pop = instance.pops.find { |pop| (Time.now.utc - 120.minutes) <= pop.created_at and pop.name == nm[:name].parameterize } %>
|
||||
<% mins = ActiveSupport::Duration.build(Time.current - pop.created_at) %>
|
||||
<div class="timer">
|
||||
<div>» <%= (120.minutes - mins).in_minutes.ceil %>m</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue