diff --git a/app/views/backend/financial_years/index.html.haml b/app/views/backend/financial_years/index.html.haml index b0d1112de7..356b4f6501 100644 --- a/app/views/backend/financial_years/index.html.haml +++ b/app/views/backend/financial_years/index.html.haml @@ -1,5 +1,5 @@ - main_toolbar do |t| = t.new params: { redirect: nil } - year = FinancialYear.closables.first - = t.close year if year & year.closable? + = t.close year if year && year.closable? = main_list