diff --git a/client/src/pages/FroshRetreat/FroshRetreat.jsx b/client/src/pages/FroshRetreat/FroshRetreat.jsx index 033673d9..43d5586b 100644 --- a/client/src/pages/FroshRetreat/FroshRetreat.jsx +++ b/client/src/pages/FroshRetreat/FroshRetreat.jsx @@ -227,6 +227,13 @@ const RetreatRegistration = () => { outOfTicketsSetter(); }, []); + useEffect(() => { + if (isWaiverUploaded) { + setViewedWaiver(true); + setIsUploaded(true); + } + }, [isWaiverUploaded]); + const handleFileChange = (event) => { setFile(event.target.files[0]); }; @@ -334,7 +341,7 @@ const RetreatRegistration = () => {

UPLOAD SIGNED WAIVER:

-

Only PDF files are accepted

+

Only PDF files under 1 MB are accepted

{viewedWaiver ? ( <>