diff --git a/app/listings/listings.controller.js b/app/listings/listings.controller.js index 6f42e1103..feef90d51 100755 --- a/app/listings/listings.controller.js +++ b/app/listings/listings.controller.js @@ -30,15 +30,10 @@ import { loadUser } from '../services/userv3.service.js' vm.myChallenges = [] loadUser().then(function(token) { handle = UserService.getUserIdentity().handle - // mock current user have this challenges - vm.myChallenges.push({'id':30056409}) - vm.myChallenges.push({'id':30056067}) - vm.myChallenges.push({'id':16870}) - // update auth flag + // update auth flag and get challenges if(TcAuthService.isAuthenticated()) { getChallenges(handle) - $scope.userProps = { isAuth: true, myChallenges: vm.myChallenges } } }, function(error) { // do nothing, just show non logged in state of navigation bar diff --git a/package.json b/package.json index 63161ef11..d043c86d6 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "appirio-styles": "0.x.x", "appirio-tech-ng-iso-constants": "^1.0.6", "appirio-tech-ng-ui-components": "^2.1.2", - "appirio-tech-react-components": "appirio-tech/react-components.git#cl-misc-fixes-2", + "appirio-tech-react-components": "appirio-tech/react-components.git#cl-misc-fixes-3", "auth0-angular": "^4.1.0", "auth0-js": "^6.8.0", "d3": "^3.5.14",