diff --git a/packages/web/components/MegaMenu/MegaMenuHeader.tsx b/packages/web/components/MegaMenu/MegaMenuHeader.tsx
index 5915e64d4..82049cfb5 100644
--- a/packages/web/components/MegaMenu/MegaMenuHeader.tsx
+++ b/packages/web/components/MegaMenu/MegaMenuHeader.tsx
@@ -122,7 +122,6 @@ export const MegaMenuHeader: React.FC = () => {
>
Connect
- Mainnet Required
)}
diff --git a/packages/web/components/Setup/WizardPane.tsx b/packages/web/components/Setup/WizardPane.tsx
index d950da437..eca24e0e2 100644
--- a/packages/web/components/Setup/WizardPane.tsx
+++ b/packages/web/components/Setup/WizardPane.tsx
@@ -95,7 +95,7 @@ export const WizardPane = ({
} = useForm();
const current = watch(field, existing);
const dirty = current !== existing || dirtyFields[field];
- const { connecting, connected, connect } = useWeb3();
+ const { connecting, connected, connect, chainId } = useWeb3();
const toast = useToast();
useEffect(() => {
@@ -142,14 +142,18 @@ export const WizardPane = ({
[current, field, setValue],
);
- if (!connecting && !connected) {
+ if ((!connecting && !connected) || chainId !== '0x1') {
return (
-
- Connect To Progress
-
+ {connecting || !connected ? (
+
+ Connect To Progress
+
+ ) : (
+ Please switch to Mainnet to continue
+ )}
diff --git a/packages/web/contexts/Web3Context.tsx b/packages/web/contexts/Web3Context.tsx
index 88350e452..1a6b7fb36 100644
--- a/packages/web/contexts/Web3Context.tsx
+++ b/packages/web/contexts/Web3Context.tsx
@@ -28,7 +28,7 @@ export type Web3ContextType = {
provider: Maybe;
ceramic: Maybe;
address: Maybe;
- chainId: Maybe;
+ chainId: Maybe;
authToken: Maybe;
connect: () => Promise;
disconnect: () => void;
@@ -102,7 +102,7 @@ type Web3State = {
wallet: Maybe;
provider: Maybe;
address: Maybe;
- chainId: Maybe;
+ chainId: Maybe;
authToken: Maybe;
};
diff --git a/packages/web/pages/profile/setup/complete.tsx b/packages/web/pages/profile/setup/complete.tsx
index c8d609f57..8fffda41a 100644
--- a/packages/web/pages/profile/setup/complete.tsx
+++ b/packages/web/pages/profile/setup/complete.tsx
@@ -1,25 +1,13 @@
-import { MegaMenu } from 'components/MegaMenu';
import { SetupDone } from 'components/Setup/SetupDone';
import { SetupProfile } from 'components/Setup/SetupProfile';
import { SetupContextProvider } from 'contexts/SetupContext';
-import { InferGetStaticPropsType } from 'next';
import React from 'react';
-export const getStaticProps = async () => ({
- props: {
- hideTopMenu: true,
- },
-});
-
-export type DefaultSetupProps = InferGetStaticPropsType;
-
-const SetupComplete: React.FC = () => (
+const SetupComplete: React.FC = () => (
-
-
-
-
-
+
+
+
);
export default SetupComplete;