diff --git a/packages/esm-billing-app/src/billing-form/social-health-authority/sha-number-validity.component.tsx b/packages/esm-billing-app/src/billing-form/social-health-authority/sha-number-validity.component.tsx index 0dd6311c..689a9d24 100644 --- a/packages/esm-billing-app/src/billing-form/social-health-authority/sha-number-validity.component.tsx +++ b/packages/esm-billing-app/src/billing-form/social-health-authority/sha-number-validity.component.tsx @@ -26,8 +26,7 @@ const SHANumberValidity: React.FC = ({ paymentMethod, pa const { data, isLoading: isLoadingHIEEligibility, error } = useSHAEligibility(patientUuid, shaIdentificationNumber); - const isRegisteredOnSHA = Boolean(data?.coverageEndDate) && Boolean(data?.coverageStartDate); - const isNotRegisteredOnSHA = data?.status === 0; + const isRegisteredOnSHA = data?.status === 1; const isActive = isRegisteredOnSHA ? isWithinInterval(new Date(), { @@ -76,7 +75,7 @@ const SHANumberValidity: React.FC = ({ paymentMethod, pa ); } - if (isNotRegisteredOnSHA) { + if (!isRegisteredOnSHA) { return (