diff --git a/containers/react/src/pages/QrCode.tsx b/containers/react/src/pages/QrCode.tsx index 2dcca83f..4da2138a 100644 --- a/containers/react/src/pages/QrCode.tsx +++ b/containers/react/src/pages/QrCode.tsx @@ -85,7 +85,7 @@ function QrCode () { console.log("registered") // history.push('/login') - const path = 'http://' + process.env.REACT_APP_BASE_URL + '/'; + const path = 'http://' + process.env.REACT_APP_BASE_URL + '/'; window.history.pushState({}, '', path); window.location.reload(); @@ -96,7 +96,7 @@ function QrCode () { //alert ?? retry } // redirect('/test') - } + } catch(err){ console.log(err) } @@ -105,7 +105,7 @@ function QrCode () { const handleDesactivate = async () => { try { await api.post("/deleteOtp") - // const path = 'http://' + process.env.REACT_APP_BASE_URL + '/'; + // const path = 'http://' + process.env.REACT_APP_BASE_URL + '/'; // window.history.pushState({}, '', path); window.location.reload(); } catch(err) { @@ -148,7 +148,7 @@ function QrCode () {