Commit 9c267685 authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

Merge branch '185-analysis-if-no-fluid-connected-and-no-navigation-history-quit-the-app' into 'dev'

Resolve "Analysis - if no fluid connected and no navigation history, quit the app"

Closes #185

See merge request web-et-numerique/llle_project/ecolyo!465
parents 4dc7fc72 5f6b30bb
......@@ -12,7 +12,9 @@ const AnalysisErrorModal: React.FC = () => {
history.push('/consumption')
}
const goBack = () => {
history.goBack()
if (history.length <= 2) {
history.push('/consumption')
} else history.goBack()
}
return (
<Dialog
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment