From 7b594d658ee7a33662933017cb32f86d1d59cc50 Mon Sep 17 00:00:00 2001 From: Pritimay Sarkar Date: Fri, 29 Sep 2023 01:18:44 +0530 Subject: [PATCH] change no tests message --- src/components/Samples.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Samples.js b/src/components/Samples.js index ec74423..eff80b3 100644 --- a/src/components/Samples.js +++ b/src/components/Samples.js @@ -10,7 +10,7 @@ const Samples = () => { useEffect(() => { if (!samples.length) { - const q = query(collection(db, "testData"), where("testTime", ">=", moment().format("YYYY-MM-DD").toString()), orderBy("testTime", "desc")); + const q = query(collection(db, "testData"), where("testTime", ">=", moment().format("YYYY-MM-DD")), orderBy("testTime", "desc")); const unsub = onSnapshot(q, (querySnapshot) => { const samples = []; @@ -38,7 +38,7 @@ const Samples = () => { )) ) : ( -
Samples will appear as in when a test is recorded
+
No tests are conducted today
)} )