Skip to content

Commit

Permalink
fix: MANO-PN
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud AMBROSELLI committed Sep 15, 2023
1 parent ff45d83 commit 9b8a79c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dashboard/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ if (ENV === 'production') {

const App = ({ resetRecoil }) => {
const authToken = useRecoilValue(authTokenState);
const user = useRecoilValue(userState);

const recoilResetKey = useRecoilValue(recoilResetKeyState);
useEffect(() => {
if (!!recoilResetKey) {
Expand Down Expand Up @@ -140,7 +142,7 @@ const App = ({ resetRecoil }) => {
<ConsultationModal />
<TreatmentModal />
<ModalConfirm />
<DataLoader />
{!!user && <DataLoader />}
</Router>
</div>
);
Expand Down

0 comments on commit 9b8a79c

Please sign in to comment.