fix: exception at progressive profiling page (#727)

VAN-1224
This commit is contained in:
Syed Sajjad Hussain Shah
2023-01-06 14:39:37 +05:00
committed by GitHub
parent 525abe6b88
commit d06290642b
5 changed files with 70 additions and 14 deletions

View File

@@ -46,11 +46,13 @@ const ProgressiveProfiling = (props) => {
useEffect(() => {
configureAuth(AxiosJwtAuthService, { loggingService: getLoggingService(), config: getConfig() });
ensureAuthenticatedUser(DASHBOARD_URL).then(() => {
hydrateAuthenticatedUser().then(() => {
setReady(true);
});
});
ensureAuthenticatedUser(DASHBOARD_URL)
.then(() => {
hydrateAuthenticatedUser().then(() => {
setReady(true);
});
})
.catch(() => {});
if (props.location.state && props.location.state.registrationResult) {
setRegistrationResult(props.location.state.registrationResult);
@@ -194,7 +196,6 @@ const ProgressiveProfiling = (props) => {
};
ProgressiveProfiling.propTypes = {
// eslint-disable-next-line react/no-unused-prop-types
formRenderState: PropTypes.string.isRequired,
intl: intlShape.isRequired,
location: PropTypes.shape({