diff --git a/routes/~_dashboard/~patients/utils.ts b/routes/~_dashboard/~patients/utils.ts index d1a7054f..065ed833 100644 --- a/routes/~_dashboard/~patients/utils.ts +++ b/routes/~_dashboard/~patients/utils.ts @@ -224,7 +224,7 @@ export const getUserActivity = async ({ const latestQuestionnaires = await getDocsData( query( refs.questionnaireResponses({ resourceType, userId: authUser.uid }), - orderBy('authored'), + orderBy('authored', 'desc'), limit(1), ), )