Skip to content

Commit

Permalink
Fixed my fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-qg committed Apr 24, 2024
1 parent 6db92b4 commit c8f9f86
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions webapp/src/components/game/GameConfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ const previousBackgroundColor = '#1a1a1a'
const GameConfiguration = () => {

let tematicas
if(useLocation().state !== null)
tematicas = useLocation().state.topics;
let state = useLocation().state
if( state !== null)
tematicas = state.topics;
else
tematicas = []
console.log(tematicas)
Expand Down

0 comments on commit c8f9f86

Please sign in to comment.