Skip to content

Commit

Permalink
the whoami call change was made in a different function, my mistake. …
Browse files Browse the repository at this point in the history
…I moved it to cacheHemoData()
  • Loading branch information
haihan-lin committed Aug 12, 2021
1 parent 26d47a9 commit 0d6677a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ const App: FC = () => {

//Data Updates
useDeepCompareEffect(() => {
if (process.env.REACT_APP_REQUIRE_LOGIN === "true") {
whoamiAPICall(store)
}
let patientIDSet: Set<number> | undefined;
if (currentSelectPatientGroup.length > 0) {
patientIDSet = new Set<number>()
Expand All @@ -74,7 +71,9 @@ const App: FC = () => {
}, [surgeryUrgencySelection, outcomeFilter, hemoData, currentOutputFilterSet, currentSelectPatientGroup])

async function cacheHemoData() {
// whoamiAPICall(store)
if (process.env.REACT_APP_REQUIRE_LOGIN === "true") {
whoamiAPICall(store)
}
fetch(`${process.env.REACT_APP_QUERY_URL}hemoglobin`)
.then((res) => res.json())
.then(async (dataHemo) => {
Expand Down

0 comments on commit 0d6677a

Please sign in to comment.