Skip to content

Commit

Permalink
Merge pull request #254 from mia-ajuda/fix/get_id_from_null
Browse files Browse the repository at this point in the history
HOTFIX - Evitar app quebrar quando o usuário está nulo
  • Loading branch information
sudjoao authored Oct 3, 2023
2 parents 528d51f + 53dd7ff commit 67e9da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/services/Firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class FirebaseService {
}

async getUserId() {
return await this.firebase.auth().currentUser.getIdToken();
return await this.firebase.auth().currentUser?.getIdToken();
}
async getCurrentUser() {
return this.firebase.auth().currentUser;
Expand Down

0 comments on commit 67e9da8

Please sign in to comment.