Skip to content

Commit

Permalink
fix: isActivityReportUnverifiable logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jooyeongmee committed Jan 24, 2025
1 parent 28e7d1a commit f14e31e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ const FundingDetailFrame: React.FC<FundingDetailFrameProps> = ({
<AsyncBoundary isLoading={isLoading} isError={isError}>
<FundingInfoList data={funding} />
<BasicEvidenceList data={funding} />
{funding.purposeActivity &&
isActivityReportUnverifiable(funding.purposeActivity.id) && (
<FixtureEvidenceList data={funding} />
)}
{(!funding.purposeActivity ||
isActivityReportUnverifiable(funding.purposeActivity.id)) && (
<FixtureEvidenceList data={funding} />
)}
{funding.isFixture && (
<FixtureEvidenceList isFixture data={funding} />
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ export interface AddEvidence {
export type FundingFormData = FundingInfo & BasicEvidence & AddEvidence;

export const isActivityReportUnverifiable = (purposeId?: number) =>
purposeId === Infinity;
purposeId === Infinity || purposeId == null;

0 comments on commit f14e31e

Please sign in to comment.