From 1a29dbbe3a3c3c5aa7e5050d19f356b9df2132c5 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Fri, 29 Apr 2022 19:00:00 -0400 Subject: [PATCH] Fix not reading from the right type --- web/lib/firebase/txns.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/lib/firebase/txns.ts b/web/lib/firebase/txns.ts index 7d8a1dfb..8f9a6843 100644 --- a/web/lib/firebase/txns.ts +++ b/web/lib/firebase/txns.ts @@ -10,7 +10,7 @@ const txnCollection = collection(db, 'txns') const getCharityQuery = (charityId: string) => query( txnCollection, - where('toType', '==', 'charity'), + where('toType', '==', 'CHARITY'), where('toId', '==', charityId), orderBy('createdTime', 'desc') )