- Fixed issue with family device not being able to see todos of the family

- Fixed issue with todos not being able to update on family device
This commit is contained in:
Dejan
2024-12-30 20:08:06 +01:00
parent f7dd31cae9
commit 04d865cce9
2 changed files with 25 additions and 8 deletions

View File

@ -11,7 +11,7 @@ export const useGetTodos = () => {
queryFn: async () => {
let snapshot;
if (profileData?.userType === ProfileType.PARENT) {
if (profileData?.userType === ProfileType.PARENT || profileData?.userType === ProfileType.FAMILY_DEVICE) {
snapshot = await firestore()
.collection("Todos")
.where("familyId", "==", profileData?.familyId)