diff options
Diffstat (limited to 'frontend/src/components/pages/summary.js')
| -rw-r--r-- | frontend/src/components/pages/summary.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/src/components/pages/summary.js b/frontend/src/components/pages/summary.js index 9957c5d..d276408 100644 --- a/frontend/src/components/pages/summary.js +++ b/frontend/src/components/pages/summary.js | |||
| @@ -318,6 +318,7 @@ if(window.confirm(`Are you sure you want to remove post: ${post.title}?`)){ | |||
| 318 | 318 | ||
| 319 | 319 | ||
| 320 | if(data!==null){ | 320 | if(data!==null){ |
| 321 | console.log(data) | ||
| 321 | 322 | ||
| 322 | let current_chapter = data.map.chapter_name | 323 | let current_chapter = data.map.chapter_name |
| 323 | let isCoop = false; | 324 | let isCoop = false; |
| @@ -340,7 +341,7 @@ return ( | |||
| 340 | <section id='section1' className='summary1'> | 341 | <section id='section1' className='summary1'> |
| 341 | <div> | 342 | <div> |
| 342 | <Link to="/games"><button className='nav-button' style={{borderRadius: "20px 0px 0px 20px"}}><i className='triangle'></i><span>Games list</span></button></Link> | 343 | <Link to="/games"><button className='nav-button' style={{borderRadius: "20px 0px 0px 20px"}}><i className='triangle'></i><span>Games list</span></button></Link> |
| 343 | <Link to={`/games/${data.map.game_name == "Portal 2 - Singleplayer" ? "game?game=1" : data.map.game_name == "Portal 2 - Cooperative" ? "game?game=2" : "psm"}&chapter=${current_chapter}`}><button className='nav-button' style={{borderRadius: "0px 20px 20px 0px", marginLeft: "2px"}}><i className='triangle'></i><span>{data.map.chapter_name}</span></button></Link> | 344 | <Link to={`/games/${!data.map.is_coop ? "1" : "2"}?chapter=${current_chapter}`}><button className='nav-button' style={{borderRadius: "0px 20px 20px 0px", marginLeft: "2px"}}><i className='triangle'></i><span>{data.map.chapter_name}</span></button></Link> |
| 344 | <br/><span><b>{data.map.map_name}</b></span> | 345 | <br/><span><b>{data.map.map_name}</b></span> |
| 345 | </div> | 346 | </div> |
| 346 | 347 | ||