Skip to content

Commit

Permalink
Update after merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
juancstlm-a6 committed Jan 7, 2025
1 parent 3d353f9 commit a380b63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import ReferralTaskCard from './ReferralTaskCard';
import { FETCH_STATUS } from '../../utils/constants';

const isExpired = referral => {
if (!referral?.ReferralExpirationDate) {
return false;
}
const expirationDate = referral.ReferralExpirationDate;
const now = new Date();
const expiration = new Date(expirationDate);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ const createReferrals = (
referrals.push(
createReferral(
referralDate,
providerIds[i % providerIds.length],
`${uuidBase}${i.toString().padStart(2, '0')}`,
providerIds[i % providerIds.length],
isExpired ? format(addDays(startDate, 6), mydFormat) : undefined,
),
);
Expand Down

0 comments on commit a380b63

Please sign in to comment.