mirror of
https://github.com/urosran/cally.git
synced 2025-07-16 01:56:16 +00:00
- 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:
@ -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)
|
||||
|
Reference in New Issue
Block a user