mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-11 06:05:16 +08:00
updated check if needs to check name function
This commit is contained in:
parent
d1bfc564f5
commit
677702eee1
1 changed files with 5 additions and 1 deletions
|
@ -146,7 +146,11 @@ exports.checkIfNeedsToChangeName = functions.https.onCall(
|
|||
.doc(request.uid)
|
||||
.get()
|
||||
.then((doc) => {
|
||||
if (doc.data().name === undefined) {
|
||||
if (
|
||||
doc.data().name === undefined ||
|
||||
doc.data().name === null ||
|
||||
doc.data().name === ""
|
||||
) {
|
||||
return admin
|
||||
.auth()
|
||||
.getUser(request.uid)
|
||||
|
|
Loading…
Reference in a new issue