From a9ae99bf82b003bc89a57bdc9e70e8fc0dff55be Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 9 Aug 2016 00:32:43 +0800 Subject: [PATCH] FIX: Admin dashboard problems not displaying when there is one error. --- app/assets/javascripts/admin/controllers/admin-dashboard.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/admin/controllers/admin-dashboard.js.es6 b/app/assets/javascripts/admin/controllers/admin-dashboard.js.es6 index 82cedfee59b..2e39c158802 100644 --- a/app/assets/javascripts/admin/controllers/admin-dashboard.js.es6 +++ b/app/assets/javascripts/admin/controllers/admin-dashboard.js.es6 @@ -22,7 +22,7 @@ export default Ember.Controller.extend({ @computed('problems.length') foundProblems(problemsLength) { - return this.currentUser.get('admin') && (problemsLength || 0) > 1; + return this.currentUser.get('admin') && (problemsLength || 0) > 0; }, @computed('foundProblems')