diff --git a/forms-flow-web/src/components/PrivateRoute.jsx b/forms-flow-web/src/components/PrivateRoute.jsx index 5d1ceda3f..68b98a3db 100644 --- a/forms-flow-web/src/components/PrivateRoute.jsx +++ b/forms-flow-web/src/components/PrivateRoute.jsx @@ -160,8 +160,8 @@ const PrivateRoute = React.memo((props) => { if (!authenticated) { setAuthError(true); } else { - authenticate(instance, props.store); publish("FF_AUTH", instance); + authenticate(instance, props.store); } }); }