diff --git a/src/views/CampaignDetail/Apply/Button/index.tsx b/src/views/CampaignDetail/Apply/Button/index.tsx index cc52edcbe9..b811fceba5 100644 --- a/src/views/CampaignDetail/Apply/Button/index.tsx +++ b/src/views/CampaignDetail/Apply/Button/index.tsx @@ -34,7 +34,8 @@ const ApplyCampaignButton = ({ const isRejected = applicationState === 'rejected' const isNotApplied = !applicationState const isAppliedDuringPeriod = - appliedAt && new Date(appliedAt) <= new Date(appEnd) + (appliedAt && appEnd && new Date(appliedAt) <= new Date(appEnd)) || + (appliedAt && !appEnd) const isApplicationStarted = now >= new Date(appStart) const isActiveCampaign = campaign.state === 'active'