Showing 3,724 of 12,675 total issues
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 (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 (
isClaimingTECondition(formData) &&
formData?.toxicExposure[checkboxObjectName]
) {
const checkboxes = formData?.toxicExposure[checkboxObjectName];
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 (
fromDate &&
toDate &&
isDateComplete(fromDate) &&
isDateComplete(toDate)
Consider simplifying this complex logical expression. Open
Open
if (
(messageValid && !isSignatureRequired) ||
(isSignatureRequired && signatureValid && checkboxValid && !saveError)
) {
setNavigationError(null);
Consider simplifying this complex logical expression. Open
Open
if (
lastPathName !== 'Messages' &&
!foldersViewPage &&
!threadViewPage &&
!contactListPage &&
Consider simplifying this complex logical expression. Open
Open
if (selectIsCommunityCare(appointment)) {
// NOTE: appointment.communityCareProvider is populated for booked CC only
const { providerName, name } = appointment.communityCareProvider || {
providerName: null,
name: null,
Consider simplifying this complex logical expression. Open
Open
if (typeOfCareId) {
const siteIds = selectSystemIds(initialState);
const cernerSiteIds = selectRegisteredCernerFacilityIds(initialState);
let typeOfCareFacilities = getTypeOfCareFacilities(initialState);
let siteId = null;
Consider simplifying this complex logical expression. Open
Open
if (
(isInPersonVAAppointment(appointment) && !isPendingAppointment) ||
isCOVIDVaccine ||
isCompAndPenAppointment ||
isClinicVideoAppointment(appointment) ||
Consider simplifying this complex logical expression. Open
Open
} else if (claimAvailable(claim)) {
breadcrumbs = [
{
href: '../status',
label: generateClaimTitle(claim, 'breadcrumb', currentTab),
Consider simplifying this complex logical expression. Open
Open
if (
(togglesLoaded && !prevProps.togglesLoaded && shouldFetchDirectDeposit) ||
(togglesLoaded &&
shouldFetchDirectDeposit &&
!prevProps.shouldFetchDirectDeposit)
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 (response.error || response.errors) {
const errorStatus =
response.errors?.[0]?.status || response?.status || '';
const errorCodeOrMessage =
response.errors?.[0]?.code || response?.error || 'unknown-error';