aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/Login.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-12-12 15:11:37 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:55 +0300
commit526f5d3a2fc6a9bf5d20f8a34ca77acb4a3a9887 (patch)
tree8d82652f10622301151fba6d58a6475606c0a2e8 /vnext/src/ui/Login.js
parent1787a35bfc29861aa53c6b8d1ea9b4f1d1572343 (diff)
Cleanup some tscheck warnings and remove remaining prop-types
Diffstat (limited to 'vnext/src/ui/Login.js')
-rw-r--r--vnext/src/ui/Login.js4
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]);