File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ export default function FilterModal({
111111 selectedTerms . includes ( "-1" ) &&
112112 selectedTerms . includes ( "-2" )
113113 ) {
114- alert ( "Alss aol zlhyjo ihy, \"P't svvrpun mvy h mshn!\" " ) ;
114+ alert ( "Alss aol zlhyjo ihy... " ) ;
115115 }
116116
117117 setFilters ( { faculties : selectedFaculties , terms : selectedTerms } ) ;
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
1010 useContext ,
1111 useMemo ,
1212 useState ,
13+ useEffect ,
1314} from "react" ;
1415import ReviewRatingInput from "../ReviewRatingInput/ReviewRatingInput" ;
1516import { validatedReq } from "@/utils/request" ;
@@ -40,6 +41,13 @@ export default function ReviewModal({
4041 const [ isOpen , setIsOpen ] = useState ( false ) ;
4142 const { setAlert } = useContext ( AlertContext ) ;
4243
44+ // Show secret message if the review modal is open for the right course
45+ useEffect ( ( ) => {
46+ if ( isOpen && courseCode === "ARTS2821" ) {
47+ alert ( "aSdtIGxvb2tpbmcgZm9yIGEgZmxhZyE=" ) ;
48+ }
49+ } , [ isOpen , courseCode ] ) ;
50+
4351 // States: Modal Inputs
4452 const defaultInputs = {
4553 overallRating : null ,
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export default function SearchBar({
1515 debounce ( ( event : ChangeEvent < HTMLInputElement > ) => {
1616 // Check if user entered the secret phrase
1717 if ( event . target . value . trim ( ) . toLowerCase ( ) === "i'm looking for a flag!" ) {
18- alert ( "Congrats! You found the flag: FLAG {leave_a_review}!" ) ;
18+ alert ( "Congrats! You found the flag: RCR {leave_a_review}!" ) ;
1919 }
2020
2121 onSearchChange ( event . target . value . trim ( ) . replaceAll ( " " , "%20" ) ) ;
You can’t perform that action at this time.
0 commit comments