diff --git a/src/App.js b/src/App.js index 1affe6d..c134603 100644 --- a/src/App.js +++ b/src/App.js @@ -57,13 +57,14 @@ function App() { const hposTestData = document.data(); hposTests.push(hposTestData); const { result } = hposTestData; - if (result === "NORMAL") { + const { classificationResult } = hposTestData; + if (result === "NORMAL" || classificationResult === 'Normal') { normalCount++; } - if (result === 'SICKLECELLTRAIT') { + if (result === 'SICKLECELLTRAIT' || classificationResult === 'Sickle Cell Trait') { traitCount++; } - if (result === 'SICKLECELLDISEASE') { + if (result === 'SICKLECELLDISEASE' || classificationResult === 'Sickle Cell Disease') { diseaseCount++; } });