From 526f5d3a2fc6a9bf5d20f8a34ca77acb4a3a9887 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 12 Dec 2019 15:11:37 +0300 Subject: Cleanup some tscheck warnings and remove remaining prop-types --- vnext/src/ui/Login.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vnext/src/ui/Login.js') 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]); -- cgit v1.2.3