diff --git a/reviewboard/static/rb/js/accountPrefsPage/views/joinedGroupsView.js b/reviewboard/static/rb/js/accountPrefsPage/views/joinedGroupsView.js
index 079388ad047ca8f2aa42b83eff7729847d4afbd3..84fbddd0a1ee6bccdbdfe51ede1a387cf3c531be 100644
--- a/reviewboard/static/rb/js/accountPrefsPage/views/joinedGroupsView.js
+++ b/reviewboard/static/rb/js/accountPrefsPage/views/joinedGroupsView.js
@@ -270,15 +270,19 @@ RB.JoinedGroupsView = Backbone.View.extend({
         this._$search = this.$('.search input');
 
         _.each(this.groups, function(groups, localSiteName) {
-            var view = new SiteGroupsView({
-                name: localSiteName,
-                groups: groups
-            });
+            var view;
 
-            view.$el.appendTo(this._$listsContainer);
-            view.render();
+            if (groups.length > 0) {
+                view = new SiteGroupsView({
+                    name: localSiteName,
+                    groups: groups
+                });
 
-            this._groupViews.push(view);
+                view.$el.appendTo(this._$listsContainer);
+                view.render();
+
+                this._groupViews.push(view);
+            }
         }, this);
 
         return this;
