Skip to content

Commit

Permalink
fix: disableWeb2Registration, #5008
Browse files Browse the repository at this point in the history
  • Loading branch information
hyifeng committed Nov 4, 2024
1 parent 0c4685a commit 42fd36d
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/next-common/utils/consts/settings/collectives.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ const collectives = {
link: "https://github.com/polkadot-fellows/RFCs/issues",
},
},
sima: true,
...polkadotThemeVars,
};

Expand Down
2 changes: 1 addition & 1 deletion packages/next-common/utils/consts/settings/kusama/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const kusama = {
cancelReferendum: true,
killReferendum: true,
},
disableWeb2Registration: true,
sima: true,
};

export default kusama;
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ const polkadot = {
cancelReferendum: true,
killReferendum: true,
},
disableWeb2Registration: true,
sima: true,
};

Expand Down
1 change: 0 additions & 1 deletion packages/next-common/utils/consts/settings/rococo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ const rococo = {
cancelReferendum: true,
killReferendum: true,
},
disableWeb2Registration: true,
sima: true,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ const westend = {
cancelReferendum: true,
killReferendum: true,
},
disableWeb2Registration: true,
sima: true,
};

Expand Down
4 changes: 2 additions & 2 deletions packages/next/pages/signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ export default function Signup() {
const isMounted = useMountedState();
const { countdown, counting: emailSent, startCountdown } = useCountdown(3);
const setUser = useSetUser();
const { disableWeb2Registration } = useChainSettings();
const disabledForm = !!disableWeb2Registration;
const { sima } = useChainSettings();
const disabledForm = !!sima;

if (emailSent && countdown === 0) {
router.replace("/");
Expand Down

0 comments on commit 42fd36d

Please sign in to comment.