Skip to content

Commit

Permalink
Fixed the config code
Browse files Browse the repository at this point in the history
  • Loading branch information
AydanPirani committed Feb 24, 2024
1 parent ca5517e commit 0c6549d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export const Config = {
// API_BASE_URL: "http://127.0.0.1:3000",
API_BASE_URL = "https://adonix.hackillinois.org/",
API_BASE_URL: "https://adonix.hackillinois.org/",
NUM_QUESTIONS: 9,
CONNECTIONS_OPTIONS: [" ", "Blockchain", "Carnival", "Fantasy", "Hardware", "Mining", "Packet", "Router", "Server", "Terminal", ],
}
Expand Down
4 changes: 2 additions & 2 deletions src/routes/Questions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function Questions() {
const jwt = localStorage.getItem("jwt");

if (!jwt) {
return <Navigate to="/auth/" />
return <Navigate to="/#/auth/" />
}

// FINISHED PUZZLE
Expand All @@ -76,7 +76,7 @@ export default function Questions() {
onOpen();
} if (response?.status == 401 || response?.status == 403) {
localStorage.removeItem("jwt");
window.location.href="/auth/"
window.location.href="/#/auth/"
} else {
console.log(response);
return null;
Expand Down

0 comments on commit 0c6549d

Please sign in to comment.