diff --git a/src/library/title.cr b/src/library/title.cr index e2a112c..9c3ad78 100644 --- a/src/library/title.cr +++ b/src/library/title.cr @@ -632,8 +632,9 @@ class Title if last_read_entry && last_read_entry.finished? username last_read_entry = last_read_entry.next_entry username - # Get the last read entry in greedy if last_read_entry.nil? + # The last entry is finished. Return the first unfinished entry + # (if any) sorted_entries(username).each do |e| unless e.finished? username last_read_entry = e