fix: remove logs

This commit is contained in:
Lakhan Samani
2022-01-31 14:53:17 +05:30
parent 32d8b7c038
commit 40dcf67de9
2 changed files with 1 additions and 3 deletions

View File

@@ -9,11 +9,9 @@ const Dashboard = lazy(() => import('./pages/dashboard'));
export default function Root() {
const { token, loading, config } = useAuthorizer();
console.log(config);
useEffect(() => {
if (token) {
const url = new URL(config.redirectURL || '/app');
console.log('=> url', url);
if (url.origin !== window.location.origin) {
window.location.href = config.redirectURL || '/app';
}