Skip to content

Commit

Permalink
redirect to homepage if data isnt present in state
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelPesce committed Oct 23, 2024
1 parent 3d64cc5 commit fa10a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electron/ui/src/views/Dashboard/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function Dashboard(props) {

useEffect(()=>{
try {
if(!scenario) {
if(!scenario?.data_input) {
navigateHome()
}
setInputDataEdited(false)
Expand Down

0 comments on commit fa10a69

Please sign in to comment.