 
           else             
             filter_str = "#{to_date_str(date_toggle_state.start)} - #{to_date_str(date_toggle_state.end)}" 
+        
         else 
           filter_str = default_date_options().find((o) -> o.key == date_toggle_state.active).label
 

      if date_toggle_state.start
        earliest = date_toggle_state.start + tz_offset


      if date_toggle_state.end 
        latest = date_toggle_state.end + tz_offset


    (earliest == null || earliest <= date) && (latest == null || latest >= date) 


  ]

clear_custom_date = ->
  date_toggle_state = fetch 'opinion-date-filter'
  date_toggle_state.start = null
  date_toggle_state.end = null
  save date_toggle_state
