Skip to content

Commit 35a8134

Browse files
authored
Merge pull request topcoder-archive#1016 from appirio-tech/cl-misc-fixes-3
Cl misc fixes 3
2 parents 04617e9 + 5d921fa commit 35a8134

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

app/listings/listings.controller.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,10 @@ import { loadUser } from '../services/userv3.service.js'
3030
vm.myChallenges = []
3131
loadUser().then(function(token) {
3232
handle = UserService.getUserIdentity().handle
33-
// mock current user have this challenges
34-
vm.myChallenges.push({'id':30056409})
35-
vm.myChallenges.push({'id':30056067})
36-
vm.myChallenges.push({'id':16870})
3733

38-
// update auth flag
34+
// update auth flag and get challenges
3935
if(TcAuthService.isAuthenticated()) {
4036
getChallenges(handle)
41-
$scope.userProps = { isAuth: true, myChallenges: vm.myChallenges }
4237
}
4338
}, function(error) {
4439
// do nothing, just show non logged in state of navigation bar

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"appirio-styles": "0.x.x",
5757
"appirio-tech-ng-iso-constants": "^1.0.6",
5858
"appirio-tech-ng-ui-components": "^2.1.2",
59-
"appirio-tech-react-components": "appirio-tech/react-components.git#cl-misc-fixes-2",
59+
"appirio-tech-react-components": "appirio-tech/react-components.git#cl-misc-fixes-3",
6060
"auth0-angular": "^4.1.0",
6161
"auth0-js": "^6.8.0",
6262
"d3": "^3.5.14",

0 commit comments

Comments
 (0)