Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ppleWatchStudy into contacts
  • Loading branch information
MatthewTurk247 committed Apr 9, 2024
2 parents ad3fcda + b8fbb5d commit 5970349
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PAWS/Contacts/Contacts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// SPDX-License-Identifier: MIT
//

import FirebaseStorage
import FirebaseFirestore
import Foundation
import SpeziAccount
import SpeziContact
Expand Down Expand Up @@ -110,8 +110,8 @@ struct Contacts: View {
guard let accountId = account.details?.accountId else {
return
}
let userBucketReference = Storage.storage().reference().child("users/\(accountId)")
let result = userBucketReference.value(forKey: "ageGroupIsAdult") as? Bool
let userDocument = try? await Firestore.firestore().collection("users").document(accountId).getDocument()
let result = userDocument?.value(forKey: "ageGroupIsAdult") as? Bool
ageGroupIsAdult = result ?? false
}
}
Expand Down

0 comments on commit 5970349

Please sign in to comment.