Skip to content

Commit d7625c9

Browse files
committed
bah
1 parent 1a4ff1c commit d7625c9

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎v3/js/composingprograms.js‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,13 @@ function signinCallback(authResult) {
125125
else if (email){
126126
$.get('name_lookup.py',
127127
{email : email},
128-
function(dataFromBackend) {
129-
$("#loggedInNameDisplay").html("Hello, " + email);
128+
function(data) {
129+
if (data.name) {
130+
$("#loggedInNameDisplay").html("Hello, " + data.name);
131+
}
132+
else {
133+
$("#loggedInNameDisplay").html("Hello, " + email);
134+
}
130135
},
131136
"json");
132137
}

0 commit comments

Comments
 (0)