Skip to content

Commit 29e9abb

Browse files
committed
updated flag
1 parent 36393fc commit 29e9abb

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

frontend/src/components/FilterModal/FilterModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 });

frontend/src/components/ReviewModal/ReviewModal.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
useContext,
1111
useMemo,
1212
useState,
13+
useEffect,
1314
} from "react";
1415
import ReviewRatingInput from "../ReviewRatingInput/ReviewRatingInput";
1516
import { 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,

frontend/src/components/SearchBar/SearchBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"));

0 commit comments

Comments
 (0)