Skip to content

Commit

Permalink
refactor: remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Aadit-Krishnaa-R committed Jan 29, 2024
1 parent e9643c2 commit 68b6365
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/components/Editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ export default function CodeEditor(props: Editor.Props): JSX.Element {
operation: 'fileUpdate',
code: editor.getValue(),
};
console.log(editor.getValue());
websocket.send(JSON.stringify(currUpdater));
}
const codeNlanguage: CodeAndLanguage = {
Expand Down
5 changes: 0 additions & 5 deletions src/pages/Dashboard/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ export default function Dashboard(): JSX.Element {
.getLatestCode()
.then(response => {
dispatch(initializeEditorStates(response));
console.log(response);
})
.catch(err => {
if (err instanceof ApiError) Toast.error(err.message);
Expand Down Expand Up @@ -290,7 +289,6 @@ export default function Dashboard(): JSX.Element {
if (isInfoOpen === true) dispatch(isInfoOpened(false));
else dispatch(isInfoOpened(true));
}
console.log(userCode);
const handleSubmit = () => {
let languageType: Language = Language.Cpp;
if (userLanguage === 'c_cpp') languageType = Language.Cpp;
Expand Down Expand Up @@ -358,10 +356,7 @@ export default function Dashboard(): JSX.Element {
const currentUserApi = new CurrentUserApi(apiConfig);

const User = useAppSelector(user);
const codeTutorialInitialLevel = User.codeTutorialNumber;
console.log(codeTutorialInitialLevel);
const navigate = useNavigate();
console.log(codeTutorialNumber);
const setOpened = (opened: boolean) => {
if (opened === false) {
currentUserApi
Expand Down
5 changes: 0 additions & 5 deletions src/store/Tutorials/tutorials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@ import { CodeAndLanguage, languagesAvailable } from '../editor/code';
import defaultCppCode from '../../assets/codes/cpp/run.cpp?raw';
import defaultPythonCode from '../../assets/codes/python/run.py?raw';
import defaultJavaCode from '../../assets/codes/java/Run.java?raw';
// import { user } from '../../store/User/UserSlice';
// import { useAppSelector } from '../hooks';

// const User = useAppSelector(user);
// const codeTutorialInitialLevel = User.codeTutorialNumber;
// console.log(codeTutorialInitialLevel);
export interface TutorialStateType {
tutorials: TutorialsGetRequest;
tutorialCode: string | undefined;
Expand Down

0 comments on commit 68b6365

Please sign in to comment.