Unverified Commit da04cde0 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub

Fix nil error when stats missing from instance API

parent 63af1ab1
......@@ -12,6 +12,7 @@
%span.title= instance_info['title']
%span.uri= instance_info['uri']
- if instance_info['stats'].is_a?(Hash)
= surround '(', ')' do
= number_with_delimiter instance_info['stats']['user_count']
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment