Skip to content

Commit 42e467f

Browse files
authored
Merge pull request #258 from TaloDev/develop
Release 0.29.2
2 parents b0b45f7 + 2415c73 commit 42e467f

File tree

4 files changed

+22
-21
lines changed

4 files changed

+22
-21
lines changed

package-lock.json

Lines changed: 19 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"lint-staged": {
7272
"*.{js,jsx}": "eslint --fix"
7373
},
74-
"version": "0.29.1",
74+
"version": "0.29.2",
7575
"engines": {
7676
"node": "20.x"
7777
},

src/App.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,11 @@ function App() {
4545
const location = window.location.pathname + window.location.search
4646
if (location !== '/') {
4747
setIntendedRoute(location)
48-
} else {
49-
setTriedRefreshing(true)
5048
}
5149
}, [])
5250

5351
useEffect(() => {
54-
if (!hasTriedRefreshing && intendedRoute) {
52+
if (!hasTriedRefreshing) {
5553
handleRefreshSession()
5654
}
5755
}, [intendedRoute, hasTriedRefreshing])

src/components/IntendedRouteHandler.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ export default function IntendedRouteHandler({ intendedRoute }) {
2525
}
2626

2727
IntendedRouteHandler.propTypes = {
28-
intendedRoute: PropTypes.string.isRequired
28+
intendedRoute: PropTypes.string
2929
}

0 commit comments

Comments
 (0)