Why is this accessing the wrong data ?

Hi, I'm trying to make a constant containing the current users's uid using firestore

Here's the code : let uid = Auth.auth().currentUser!.uid

But it accesses the red uid not the blue one as it should (see picture),how should I fix this ?

Picture : https://ibb.co/pRNz73F

Replies

That's clearly a question to firestore.


However, you should explain (picture does not tell by itself):

- what is the blue one ?

- what is the red one ?

- why do you expect to get the red and not the bue ?