Skip to content

Commit

Permalink
fix(web): disable-next-button-while-policy-uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
Harman-singh-waraich committed Jan 9, 2024
1 parent 28fe991 commit 8b9e55a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/context/Web3Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const chains = [arbitrumSepolia, mainnet, gnosisChiado];
const projectId = process.env.WALLETCONNECT_PROJECT_ID ?? "6efaa26765fa742153baf9281e218217";

const { publicClient, webSocketPublicClient } = configureChains(chains, [
alchemyProvider({ apiKey: process.env.ALCHEMY_API_KEY ?? "-oL5ZwI1SeQyu9_SaOF83pv10U5mw_k4" }),
alchemyProvider({ apiKey: process.env.ALCHEMY_API_KEY ?? "" }),
jsonRpcProvider({
rpc: () => ({
http: `https://rpc.chiadochain.net`,
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/Resolver/NavigationButtons/NextButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const NextButton: React.FC<INextButton> = ({ nextRoute }) => {
(location.pathname.includes("/resolver/jurors") && (!disputeData.numberOfJurors || !disputeData.arbitrationCost)) ||
(location.pathname.includes("/resolver/votingoptions") && !areVotingOptionsFilled) ||
(location.pathname.includes("/resolver/counterparties") && !disputeData.aliases) ||
(location.pathname.includes("/resolver/policy") && !isPolicyUploading && !disputeData.policyURI);
(location.pathname.includes("/resolver/policy") && (isPolicyUploading || !disputeData.policyURI));

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

0 comments on commit 8b9e55a

Please sign in to comment.