From e9a840f169a0958065188f7c4da508016c128c30 Mon Sep 17 00:00:00 2001 From: Zeeshan Ahmad Date: Thu, 9 Nov 2023 17:59:16 +0500 Subject: [PATCH] Revert changes --- src/pages/JoinPage.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/pages/JoinPage.js b/src/pages/JoinPage.js index 9159a52a..48cb9a10 100644 --- a/src/pages/JoinPage.js +++ b/src/pages/JoinPage.js @@ -1,4 +1,4 @@ -import React, { useEffect } from "react"; +import React from "react"; import { UserDropdown } from "../components/navigation/desktop/UserDropdown"; import { Widget } from "near-social-vm"; import { useBosLoaderStore } from "../stores/bos-loader"; @@ -10,15 +10,6 @@ export default function JoinPage(props) { ? "buildhub.near/widget/create-something" : "buildhub.near/widget/login"; - useEffect(() => { - if ( - props.signedIn === true && - CurrentView === "buildhub.near/widget/login" - ) { - window.location.reload(); - } - }, [props.signedIn]); - return (
{props.signedIn && (