Skip to content

Commit

Permalink
Merge pull request #185 from TaloDev/develop
Browse files Browse the repository at this point in the history
Release 0.26.1
  • Loading branch information
tudddorrr authored Apr 8, 2023
2 parents 2e7f020 + 54994d7 commit e7648f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"lint-staged": {
"*.{js,jsx}": "eslint --fix"
},
"version": "0.26.0",
"version": "0.26.1",
"engines": {
"node": "16.x"
}
Expand Down
21 changes: 10 additions & 11 deletions src/pages/PlayerSaveContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,6 @@ export default function PlayerSaveContent() {

const [isLoading, setLoading] = useState(true)

useEffect(() => {
console.log(save)
if (!save) {
navigate(routes.playerSaves.replace(':id', playerId))
} else {
setTimeout(() => {
setContent()
}, 200)
}
}, [save])

const navigate = useNavigate()

const embedRef = useRef()
Expand All @@ -38,6 +27,16 @@ export default function PlayerSaveContent() {
setLoading(false)
}, [])

useEffect(() => {
if (!save) {
navigate(routes.playerSaves.replace(':id', playerId))
} else {
setTimeout(() => {
setContent()
}, 300)
}
}, [save])

return (
<Page
showBackButton
Expand Down

0 comments on commit e7648f2

Please sign in to comment.