Skip to content

Commit 71f4afa

Browse files
tractorssjaybuidl
authored andcommitted
fix(web): disable-next-button-while-policy-uploading
1 parent dc7c187 commit 71f4afa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/src/context/Web3Provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const chains = [arbitrumSepolia, mainnet, gnosisChiado];
1212
const projectId = process.env.WALLETCONNECT_PROJECT_ID ?? "6efaa26765fa742153baf9281e218217";
1313

1414
const { publicClient, webSocketPublicClient } = configureChains(chains, [
15-
alchemyProvider({ apiKey: process.env.ALCHEMY_API_KEY ?? "-oL5ZwI1SeQyu9_SaOF83pv10U5mw_k4" }),
15+
alchemyProvider({ apiKey: process.env.ALCHEMY_API_KEY ?? "" }),
1616
jsonRpcProvider({
1717
rpc: () => ({
1818
http: `https://rpc.chiadochain.net`,

web/src/pages/Resolver/NavigationButtons/NextButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const NextButton: React.FC<INextButton> = ({ nextRoute }) => {
2323
(location.pathname.includes("/resolver/jurors") && (!disputeData.numberOfJurors || !disputeData.arbitrationCost)) ||
2424
(location.pathname.includes("/resolver/votingoptions") && !areVotingOptionsFilled) ||
2525
(location.pathname.includes("/resolver/counterparties") && !disputeData.aliases) ||
26-
(location.pathname.includes("/resolver/policy") && !isPolicyUploading && !disputeData.policyURI);
26+
(location.pathname.includes("/resolver/policy") && (isPolicyUploading || !disputeData.policyURI));
2727

2828
return <Button disabled={isButtonDisabled} onClick={() => navigate(nextRoute)} text="Next" />;
2929
};

0 commit comments

Comments
 (0)