Hi there i am trying to insert in my firestore db, i have noticed that the data goes through but if i add it manually in the console the color of the id is diferent, is darker as you can see in the picture.
When i do a query only finds the ones i have inserted manually
In my Home.js i get the datestring value from react native calendars by wix
onDayPress={(day) => {
const dateString =day.dateString.toString()
setDateString(dateString); console.log(dateString) }}
// Initially selected day
And then in App.js i create my task with the dateString
const createTask = async (collection, data) => {
//adding data to a collection with automatic id
//const ref = await addDoc( collection(FSdb, FScollection ), data )
const ref = await setDoc(doc(FSdb, `usertasks/${user.uid}/events/${data.dateString}/items/${new Date().getTime()}`), data)
//console.log( ref.id )
}
I dont know what im doing wrong