Skip to content

Commit

Permalink
resolve warnings so ci builds don't ffail
Browse files Browse the repository at this point in the history
  • Loading branch information
varun7654 committed May 6, 2024
1 parent 53cfaa2 commit 5f2470f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/auth/LoginButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function LoginButton() {
console.error(error);
});
}

// eslint-disable-next-line
}, [loggedIn, token]);

function logIn() {
Expand Down Expand Up @@ -85,5 +85,5 @@ export default function LoginButton() {
export function logout() {
localStorage.removeItem("token");
localStorage.removeItem("userName");
window.location.href = window.location.href;
window.location.reload()
}
2 changes: 1 addition & 1 deletion src/auth/LoginSuccess.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function LoginSuccess() {
console.error(error);
});
}
}, []);
});


return (
Expand Down
1 change: 1 addition & 0 deletions src/dev/useInitial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {useState} from "react";
import {InitialHookStatus} from "@react-buddy/ide-toolbox";

export const useInitial: () => InitialHookStatus = () => {
// eslint-disable-next-line
const [status, setStatus] = useState<InitialHookStatus>({
loading: false,
error: false,
Expand Down
2 changes: 2 additions & 0 deletions src/problem/CodeRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ ${solutionCode}
let testResults = new TestResults();

try {
// eslint-disable-next-line
let func = Function(codeToRun);
let out = func();

Expand Down Expand Up @@ -564,6 +565,7 @@ ${solutionCode}
let expectedResultsArray: any[] = [];

try {
// eslint-disable-next-line
let func = Function(codeToRun);
expectedResultsArray = func();
} catch (e: any) {
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
purge: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'],
content: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'],
darkMode: true, // or 'media' or 'class'
theme: {
extend: {
Expand Down

0 comments on commit 5f2470f

Please sign in to comment.