Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldkibet authored Jan 20, 2025
2 parents fe67ffc + 7416b8f commit 7e5b5f9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const SHANumberValidity: React.FC<SHANumberValidityProps> = ({ paymentMethod, pa
const { data, isLoading: isLoadingHIEEligibility, error } = useSHAEligibility(patientUuid, shaIdentificationNumber);

const isRegisteredOnSHA = Boolean(data?.coverageEndDate) && Boolean(data?.coverageStartDate);
const isNotRegisteredOnSHA = data?.active === false;
const isNotRegisteredOnSHA = data?.status === 0;

const isActive = isRegisteredOnSHA
? isWithinInterval(new Date(), {
Expand Down Expand Up @@ -79,8 +79,8 @@ const SHANumberValidity: React.FC<SHANumberValidityProps> = ({ paymentMethod, pa
if (isNotRegisteredOnSHA) {
return (
<InlineNotification
title={t('pendingHIEVerification', 'Pending HIE verification')}
subtitle={data?.message}
title={t('HIEVerificationFailure', 'HIE verification failure')}
subtitle={`${data?.message ?? ''}.${data?.possibleSolution ?? ''}`}
className={styles.missingSHANumber}
/>
);
Expand Down

0 comments on commit 7e5b5f9

Please sign in to comment.