Skip to content

Commit a187d9a

Browse files
author
Arush Sehgal
committed
stupid parse user null bug
1 parent aca7bc9 commit a187d9a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/scripts/controllers/facebook-example.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ angular.module('facebook')
55

66

77
$scope.facebookCtrl = {
8-
fbAuthData : Parse.User.current().get('authData'),
98
response : {}
109
};
1110

11+
if(Parse.User.current()) {
12+
$scope.facebookCtrl.fbAuthData = Parse.User.current().get('authData');
13+
}
1214

1315

1416
$scope.fbConnect = function() {

0 commit comments

Comments
 (0)