Skip to content

Commit

Permalink
Hardcoded VM IP
Browse files Browse the repository at this point in the history
  • Loading branch information
Raulms29 committed Mar 12, 2024
1 parent 00c160c commit 13a741a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions webapp/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Leaderboard from "./pages/Leaderboard/Leaderboard"
import Settings from "./pages/Settings/Settings"
import Home from "./pages/Home/Home"

const apiEndpoint = process.env.API_URI || "http://localhost:8000"
const apiEndpoint = "http://20.68.241.109:8000"

function App() {
//State for opening and closing the navigation
Expand All @@ -21,7 +21,7 @@ function App() {
const [questions, setQuestions] = useState([])

useEffect(() => {
;(async () => {
; (async () => {
const questions = await getQuestions()
setQuestions(questions)
console.log(questions)
Expand Down Expand Up @@ -82,11 +82,11 @@ function App() {
randomIndex = Math.floor(Math.random() * currentIndex)
currentIndex--

// And swap it with the current element.
;[array[currentIndex], array[randomIndex]] = [
array[randomIndex],
array[currentIndex]
]
// And swap it with the current element.
;[array[currentIndex], array[randomIndex]] = [
array[randomIndex],
array[currentIndex]
]
}

return array
Expand Down

0 comments on commit 13a741a

Please sign in to comment.