Skip to content

Commit 185db67

Browse files
committed
fixed first name on tesxting
1 parent 345da29 commit 185db67

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

www/js/controllers/select-challenger-controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ angular.module('starter')
6969
var invitationObj = {
7070
users: $scope.usersChecked,
7171
challengeId: DataSharingService.startedChallenge.id,
72-
challengerName: 'testName',
72+
challengerName: $localStorage.activeFirstName,
7373
startTime: Date.now()
7474
};
7575

www/js/services.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function FacebookService($http, $localStorage, $location, DataSharingService, $s
8686
//########## HARD CODE ID HERE #################//
8787
//###############################################
8888
/**/$localStorage.activeUserId = res.data.id;
89-
$localStorage.activeUserName = res.data.first_name;
89+
$localStorage.activeFirstName = res.data.first_name;
9090
/**/
9191

9292
//###############################################
@@ -118,7 +118,7 @@ function FacebookService($http, $localStorage, $location, DataSharingService, $s
118118
delete($localStorage.activeUserId);
119119
delete($localStorage.accessToken);
120120
delete($localStorage.registered);
121-
delete($localStorage.activeUserName);
121+
delete($localStorage.activeFirstName);
122122
}
123123
}
124124

0 commit comments

Comments
 (0)