fix: eslint issues
This commit is contained in:
committed by
Waheed Ahmad
parent
d4bfdf699b
commit
f83c24c020
@@ -17,7 +17,7 @@ const useMobileResponsive = (breakpoint) => {
|
||||
window.addEventListener('resize', checkForMobile);
|
||||
// return this function here to clean up the event listener
|
||||
return () => window.removeEventListener('resize', checkForMobile);
|
||||
}, []);
|
||||
});
|
||||
return isMobileWindow;
|
||||
};
|
||||
|
||||
|
||||
@@ -45,10 +45,9 @@ const ResetPasswordPage = (props) => {
|
||||
setErrorCode(props.status);
|
||||
}
|
||||
if (props.status === PASSWORD_VALIDATION_ERROR) {
|
||||
formErrors.newPassword = intl.formatMessage(messages['password.validation.message']);
|
||||
setFormErrors({ ...formErrors });
|
||||
setFormErrors({ newPassword: intl.formatMessage(messages['password.validation.message']) });
|
||||
}
|
||||
}, [props.errorMsg]);
|
||||
}, [props.status, intl]);
|
||||
|
||||
const validatePasswordFromBackend = async (password) => {
|
||||
let errorMessage = '';
|
||||
|
||||
@@ -58,7 +58,7 @@ const ProgressiveProfiling = (props) => {
|
||||
setRegistrationResult(props.location.state.registrationResult);
|
||||
sendPageEvent('login_and_registration', 'welcome');
|
||||
}
|
||||
}, []);
|
||||
}, [DASHBOARD_URL, props.location.state]);
|
||||
|
||||
if (!props.location.state || !props.location.state.registrationResult || formRenderState === FAILURE_STATE) {
|
||||
global.location.assign(DASHBOARD_URL);
|
||||
|
||||
@@ -55,7 +55,7 @@ const WelcomePage = (props) => {
|
||||
setRegistrationResult(props.location.state.registrationResult);
|
||||
sendPageEvent('login_and_registration', 'welcome');
|
||||
}
|
||||
}, []);
|
||||
}, [DASHBOARD_URL, props.location.state]);
|
||||
|
||||
if (!props.location.state || !props.location.state.registrationResult) {
|
||||
global.location.assign(DASHBOARD_URL);
|
||||
|
||||
Reference in New Issue
Block a user