fix: fixed duplicate event firing on post SSO login registration (#1381)

This commit is contained in:
ayesha waris
2024-11-27 18:56:03 +05:00
committed by GitHub
parent 7339aec7c2
commit cd2003921b
2 changed files with 7 additions and 2 deletions

View File

@@ -160,7 +160,10 @@ const LoginPage = (props) => {
webElementText: ELEMENT_TEXT.SIGN_IN,
webElementName: ELEMENT_NAME.SIGN_IN,
};
dispatch(setCohesionEventStates(eventData));
if (currentProvider) {
dispatch(setCohesionEventStates(eventData));
}
if (showResetPasswordSuccessBanner) {
props.dismissPasswordResetBanner();
}

View File

@@ -278,7 +278,9 @@ const RegistrationPage = (props) => {
webElementText: ELEMENT_TEXT.CREATE_ACCOUNT,
webElementName: ELEMENT_NAME.CREATE_ACCOUNT,
};
dispatch(setCohesionEventStates(eventData));
if (currentProvider) {
dispatch(setCohesionEventStates(eventData));
}
registerUser();
};