Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungJL committed Sep 22, 2024
1 parent 959c9fd commit 6df1a9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modals/study/StudyOpenCheckModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import { IFooterOptions, ModalLayout } from "../Modals";

interface StudyOpenCheckModalProps extends IModal {
par: IParticipation;
date: string;
}

function StudyOpenCheckModal({ setIsModal, par }: StudyOpenCheckModalProps) {
function StudyOpenCheckModal({ setIsModal, par,date }: StudyOpenCheckModalProps) {
const router = useRouter();
const searchParams = useSearchParams();
const date = searchParams.get("date");

const [isFirstPage, setIsFirstPage] = useState(true);

Expand Down
2 changes: 1 addition & 1 deletion pageTemplates/home/study/HomeStudyCol.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function HomeStudyCol({ studyVoteData, isLoading, date, isShort }: HomeStudyColP
</BlurredPart>

{dismissedStudy && (
<StudyOpenCheckModal setIsModal={() => setDismissedStudy(null)} par={dismissedStudy} />
<StudyOpenCheckModal date={date} setIsModal={() => setDismissedStudy(null)} par={dismissedStudy} />
)}
</>
);
Expand Down

0 comments on commit 6df1a9c

Please sign in to comment.