mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 00:24:53 +00:00
Notifications sorting, modal fixes
This commit is contained in:
@ -35,11 +35,11 @@ export const useGetNotifications = () => {
|
||||
const snapshot = await firestore()
|
||||
.collection("Notifications")
|
||||
.where("familyId", "==", profileData?.familyId)
|
||||
.orderBy("timestamp", "desc")
|
||||
.get();
|
||||
|
||||
return snapshot.docs.map((doc) => {
|
||||
const data = doc.data() as NotificationFirestore;
|
||||
|
||||
return {
|
||||
id: doc.id,
|
||||
...data,
|
||||
|
||||
Reference in New Issue
Block a user