diff options
Diffstat (limited to 'vnext/src/ui/Login.js')
-rw-r--r-- | vnext/src/ui/Login.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/src/ui/Login.js b/vnext/src/ui/Login.js index 641ceb67..ff16d947 100644 --- a/vnext/src/ui/Login.js +++ b/vnext/src/ui/Login.js @@ -27,9 +27,9 @@ function Login({ visitor, onAuth }) { useEffect(() => { if (visitor.hash) { - const {retpath } = location.state; + const {retpath } = location.state || '/'; console.log(retpath); - history.push(retpath || '/'); + history.push(retpath); } }, [history, location.state, visitor]); |