Removed console.logs
This commit is contained in:
@@ -65,7 +65,6 @@ export default function WriteBlanks({id, prompt, maxWords, solutions, text, onNe
|
||||
const id = match.replaceAll(/[\{\}]/g, "");
|
||||
const userSolution = userSolutions.find((x) => x.id === id);
|
||||
const setUserSolution = (solution: string) => {
|
||||
console.log({solution});
|
||||
setUserSolutions((prev) => [...prev.filter((x) => x.id !== id), {id, solution}]);
|
||||
};
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@ export default withIronSessionApiRoute(user, sessionOptions);
|
||||
|
||||
async function user(req: NextApiRequest, res: NextApiResponse) {
|
||||
if (req.session.user) {
|
||||
console.log(auth.currentUser);
|
||||
if (!auth.currentUser) {
|
||||
res.status(401).json({ok: false});
|
||||
return;
|
||||
|
||||
@@ -81,7 +81,6 @@ export default function Page({user}: {user: User}) {
|
||||
|
||||
const onFinish = (solutions: UserSolution[]) => {
|
||||
const solutionIds = solutions.map((x) => x.id);
|
||||
console.log({solutions});
|
||||
|
||||
setUserSolutions((prev) => [...prev.filter((x) => !solutionIds.includes(x.id)), ...solutions]);
|
||||
setModuleIndex((prev) => prev + 1);
|
||||
|
||||
Reference in New Issue
Block a user