In Dashboard.jsx at line 24 where the user is being navigated to the login page on null user ( likely due to logout being pressed ), there is an early return that is missing. Without that return, a user would have to click logout and also refresh the page to reach login.
( I'm a newbie to react so maybe there is a more conventional react way of doing this ).
In Dashboard.jsx at line 24 where the user is being navigated to the login page on null user ( likely due to logout being pressed ), there is an early return that is missing. Without that return, a user would have to click logout and also refresh the page to reach login.
( I'm a newbie to react so maybe there is a more conventional react way of doing this ).