diff --git a/app/views/cards/index.html.erb b/app/views/cards/index.html.erb index 7ea1368..239c920 100644 --- a/app/views/cards/index.html.erb +++ b/app/views/cards/index.html.erb @@ -4,7 +4,7 @@ <%= link_to 'Upload all cards', upload_all_path if can? :upload_all, Card %> <%= link_to 'Door Logs', door_logs_path if can? :read, DoorLog %>

-Most Active Card Last 7 Days: <%= @most_active_card.name %> (<%= @most_active_card.accesses_this_week %> times) +Most Active Card Last 7 Days: <%= @most_active_card.name unless @most_active_card.blank? %> (<%= @most_active_card.accesses_this_week unless @most_active_card.blank? %> times)