From 561e6bd10765f933556c528f252a6388a7e654f1 Mon Sep 17 00:00:00 2001 From: John Topley Date: Tue, 4 Apr 2023 09:47:01 +0100 Subject: [PATCH] Don't display the GraphQL API rate limit information on the About screen if it's not available --- webapp/views/about.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/views/about.erb b/webapp/views/about.erb index 9ca7c20..85bbbd7 100644 --- a/webapp/views/about.erb +++ b/webapp/views/about.erb @@ -11,11 +11,13 @@ +<% unless rate_limit.nil? %>

GitHub GraphQL API Rate Limit

<%=pluralise(rate_limit.remaining, 'point', 'points') %> remaining out of <%=pluralise(rate_limit.limit, 'point', 'points') %> limit

Resets <%=d rate_limit.reset_at %>

+<% end %>

Version Information

Branch: <%=h branch %>