diff --git a/Resources/public/js/comments/controllers/portfoliosController.js b/Resources/public/js/comments/controllers/portfoliosController.js
index <HASH>..<HASH> 100644
--- a/Resources/public/js/comments/controllers/portfoliosController.js
+++ b/Resources/public/js/comments/controllers/portfoliosController.js
@@ -2,7 +2,7 @@
 
 commentsApp
     .controller("portfoliosController", ["$scope", "portfolioManager", "commentsManager", "$filter",
-                                function($scope, portfolioManager, commentsManager, $filter) {
+        function($scope, portfolioManager, commentsManager, $filter) {
         $scope.selectedPortfolioId = window.currentPortfolioId;
         $scope.selectedPortfolio   = null;
         $scope.portfolios          = portfolioManager.getPortfolios();
@@ -18,7 +18,7 @@ commentsApp
         );
 
         $scope.clickOnPortolio = function(portfolioId) {
-            if ($scope.selectedPortfolioId != portfolioId) {
+            if (null === $scope.selectedPortfolio) {
                 $scope.selectedPortfolioId = portfolioId;
                 $scope.selectedPortfolio  = $filter('filter')($scope.portfolios, {id: $scope.selectedPortfolioId})[0];
                 commentsManager.loadComments(portfolioId);
@@ -34,5 +34,5 @@ commentsApp
             if (0 < $scope.selectedPortfolio.unreadComments) {
                 portfolioManager.updateViewCommentsDate($scope.selectedPortfolio);
             }
-        }
+        };
     }]);
\ No newline at end of file
[PortfolioBundle] Fix bug when coming to comment page after selecting portfolio