fix: fixed duplicate event firing on post SSO login registration (#1381)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user