Skip to content

Commit

Permalink
Merge pull request #171 from identity-research-lab/category-suggestio…
Browse files Browse the repository at this point in the history
…ns-3

Nil check on suggestion timestamp
  • Loading branch information
CoralineAda authored Oct 31, 2024
2 parents cff69bb + 4dc5d0b commit ad20351
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/views/categories/_suggestions.html.erb
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<%= turbo_frame_tag "frame-suggestions" do %>

<% if enqueued && DateTime.parse(enqueued) > context.suggestions_updated_at %>
<% if enqueued && (context.suggestions_updated_at.nil? || DateTime.parse(enqueued) > context.suggestions_updated_at) %>
<div class="throbber"><div></div><div></div></div>
<script language="javascript">
function refreshSpinner() {
setInterval(() => {
console.log("firing");
location.reload();
}, 3000);
}
Expand Down

0 comments on commit ad20351

Please sign in to comment.