Showing 4,177 of 14,709 total issues
Consider simplifying this complex logical expression. Open
Open
if (useOAuth && (isLogin || isSignup)) {
return createOAuthRequest({
acr,
application,
clientId,
Consider simplifying this complex logical expression. Open
Open
if (
(firstName &&
!fetchedExclusionPeriods &&
formData?.chosenBenefit &&
meb160630Automation) ||
Consider simplifying this complex logical expression. Open
Open
if (
(formattedOpeningHour.search(/Invalid date/i) !== 0 &&
formattedClosingHour.search(/Invalid date/i) !== 0) ||
(formattedOpeningHour.search(/Invalid date/i) !== 0 &&
formattedClosingHour.search(/Invalid date/i) === 0) ||
Consider simplifying this complex logical expression. Open
Open
if (
sanitizedOperatingHours.search(/ByAppointmentOnly/i) === 0 ||
sanitizedOperatingHours.search(/AppointmentsOnly/i) === 0 ||
sanitizedOperatingHours.search(/PleaseCallforHours/i) === 0 ||
sanitizedOperatingHours.search(
Consider simplifying this complex logical expression. Open
Open
if (
(isUrgentCare && (!serviceType || serviceType === 'AllUrgentCare')) ||
(isEmergencyCare && (!serviceType || serviceType === 'AllEmergencyCare'))
) {
const allCare = await returnAllCare({
Consider simplifying this complex logical expression. Open
Open
if (
modifiedData.application.applicant &&
modifiedData.application.applicant['view:applicantInfo'] &&
modifiedData.application.applicant['view:applicantInfo']
.mailingAddress &&
Consider simplifying this complex logical expression. Open
Open
if (
!startDateMonth ||
!startDateDay ||
!startDateYear ||
!endDateMonth ||
Consider simplifying this complex logical expression. Open
Open
if (
!isCheckInDataLoading &&
(!isTravelReimbursementEnabled ||
!travelPayEligible ||
(travelPayClaimRequested === false || travelPayClaimSent) ||
Consider simplifying this complex logical expression. Open
Open
if (
isLoading ||
!isTravelReimbursementEnabled ||
travelPayClaimSent ||
!travelPayEligible ||
Consider simplifying this complex logical expression. Open
Open
if (
!street &&
!city &&
!state &&
!country &&
Consider simplifying this complex logical expression. Open
Open
if (
isClaimingTECondition(formData) &&
formData?.toxicExposure[checkboxObjectName]
) {
const checkboxes = formData?.toxicExposure[checkboxObjectName];
Consider simplifying this complex logical expression. Open
Open
if (isEditing) {
return (
<div key={index} className="va-growable-background">
<Element name={`table_${itemIdPrefix}`} />
<div className="row small-collapse">
Consider simplifying this complex logical expression. Open
Open
if (
loggedIn &&
showWizard &&
((!hasSavedForm && wizardStatus !== WIZARD_STATUS_COMPLETE) ||
(hasSavedForm && wizardStatus === WIZARD_STATUS_RESTARTING))
Consider simplifying this complex logical expression. Open
Open
if (mailingAddress) {
const onMilitaryBase = MILITARY_CITIES.includes(mailingAddress.city);
newData.mailingAddress = {
// strip out any extra data. Maybe left over from v1?
// see https://github.com/department-of-veterans-affairs/va.gov-team/issues/19423
Consider simplifying this complex logical expression. Open
Open
if (
(GuardianshipAndVRE || EducationAndVRE) &&
(whoIsYourQuestionAbout === whoIsYourQuestionAboutLabels.SOMEONE_ELSE &&
relationshipToVeteran === relationshipOptionsSomeoneElse.WORK &&
isQuestionAboutVeteranOrSomeoneElse ===
Consider simplifying this complex logical expression. Open
Open
if (
!(
(formData.whoIsYourQuestionAbout === 'Someone else' &&
formData.relationshipToVeteran ===
"I'm connected to the Veteran through my work (for example, as a School Certifying Official or fiduciary)") ||
Consider simplifying this complex logical expression. Open
Open
if (
(GuardianshipAndVRE || EducationAndVRE) &&
(whoIsYourQuestionAbout === whoIsYourQuestionAboutLabels.SOMEONE_ELSE &&
relationshipToVeteran === relationshipOptionsSomeoneElse.FAMILY_MEMBER &&
isQuestionAboutVeteranOrSomeoneElse ===
Consider simplifying this complex logical expression. Open
Open
if (
(GuardianshipAndVRE || EducationAndVRE) &&
(whoIsYourQuestionAbout === whoIsYourQuestionAboutLabels.SOMEONE_ELSE &&
relationshipToVeteran === relationshipOptionsSomeoneElse.FAMILY_MEMBER &&
isQuestionAboutVeteranOrSomeoneElse ===
Consider simplifying this complex logical expression. Open
Open
if (
lastPathName !== 'Messages' &&
!foldersViewPage &&
!threadViewPage &&
!contactListPage &&
Consider simplifying this complex logical expression. Open
Open
if (
(messageValid && !isSignatureRequired) ||
(isSignatureRequired &&
messageValid &&
saveError !== null &&