Skip to content

Commit

Permalink
fix: max number of adding activity
Browse files Browse the repository at this point in the history
  • Loading branch information
pbc1017 committed Jun 17, 2024
1 parent 5e832a0 commit dcc9b8f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion front/src/pages/club/ClubManage/ClubManage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,16 @@ export const ClubManage = (): JSX.Element => {
))}
</div>
<div className="frame-28">
{activitiesLists[status.clubId]?.length < 20 &&
{activitiesLists[status.clubId]?.filter((activity) => {
const startDate = new Date(activity.startDate);
const endDate = new Date(activity.endDate);
const targetStartDate = new Date("2023-12-16");
const targetEndDate = new Date("2024-06-14");
return (
startDate >= targetStartDate &&
endDate <= targetEndDate
);
}).length < 20 &&
status.typeId < 4 &&
durationStatus === 1 && (
<>
Expand Down

0 comments on commit dcc9b8f

Please sign in to comment.