How hide the button in a particular condition
{ !groupAccountPatientView && location.pathname.includes('group-accounts') && <button title="Main Patient" onClick={() =>browserHistory.push(`/patients/${patientInfo.PatientID}/`)} className="dashboard-patients-header_user"> <UserSolidIcon/> </button> || <div className="patients-header_extras"> <div className="patients-header_extras_switch"> {!groupAccountPatientView && <button title="Patient Group" onClick={() =>browserHistory.push(totalGroupedPatientCount >1 ? `/patients/${patientInfo.PatientID}/group-accounts`: '#')} className="patients-header_extras_group patients-header_extras_switch_button"> <PatientsGroupIcon /> <span>({totalGroupedPatientCount>1?totalGroupedPatientCount:0})</span> </button>} </div> this is my condition
totalGroupedPatientCount !==0 When count equal to show doesn't have to show the button otherwise show it. How it possible??