Skip to content

Commit

Permalink
Take the full name
Browse files Browse the repository at this point in the history
  • Loading branch information
sbis04 committed Jul 30, 2020
1 parent 835f9ea commit 547139d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/utils/sign_in.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ Future<String> signInWithGoogle() async {
userEmail = user.email;
imageUrl = user.photoUrl;

// Only taking the first part of the name, i.e., First Name
if (name.contains(" ")) {
name = name.substring(0, name.indexOf(" "));
}

assert(!user.isAnonymous);
assert(await user.getIdToken() != null);

Expand Down

0 comments on commit 547139d

Please sign in to comment.