Commit 5f6b30bb authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

fix(analysis): Prevent user to quit the app if he has no fluid connected and...

fix(analysis): Prevent user to quit the app if he has no fluid connected and open analysis page without navigate in the app before
parent 683f0030
......@@ -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