Skip to content

Commit

Permalink
fix: nitpicks
Browse files Browse the repository at this point in the history
  • Loading branch information
kemuru committed Nov 21, 2024
1 parent d19188a commit 121e137
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/containers/case.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default function Case() {
return disputeData.deadline && (new Date().getTime() - disputeData.deadline.getTime() > 30 * 365 * 24 * 60 * 60 * 1000);
}, [disputeData.deadline]);

async function handleChainSwitch() {
async function handleChainSwitchToMainnet() {
try {
await window.ethereum.request({
method: 'wallet_switchEthereumChain',
Expand All @@ -100,12 +100,12 @@ export default function Case() {
visible={true}
closable={false}
footer={[
<Button key="switch" type="primary" onClick={handleChainSwitch}>
<Button key="switch" type="primary" onClick={handleChainSwitchToMainnet}>
Switch to Mainnet
</Button>,
]}
>
<p>The dispute with ID {ID} does not exist on the {chainIdToNetworkName[chainId]}. Please switch to Mainnet.</p>
<p>The dispute with ID {ID} does not exist on {chainIdToNetworkName[chainId]}. Please switch to Mainnet.</p>
</Modal>
);
}
Expand Down

0 comments on commit 121e137

Please sign in to comment.