Skip to content

Commit 5b3dce1

Browse files
committed
Better match states of swap
1 parent c4bdd38 commit 5b3dce1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/website/components/help/how-it-works.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const HowItWorks = () => {
1515
const steps = [
1616
{
1717
message: ' Connect your wallet and select the PoW Ethereum chain.', isAtStep: () => {
18-
return !account || !isChainSupported
18+
return !account || (!isChainSupported && !processingCommitment)
1919
}
2020
},
2121
{
@@ -25,12 +25,12 @@ export const HowItWorks = () => {
2525
},
2626
{
2727
message: 'Sign a transaction for the dump on the PoW Ethereum chain.', isAtStep: () => {
28-
return form.ethPoWAmount && !form.signed && !form.complete
28+
return form.ethPoWAmount && !form.signed && !form.complete && isChainSupported
2929
}
3030
},
3131
{
3232
message: 'Wait for someone to match your transaction or for it to expire.', isAtStep: () => {
33-
return processingCommitment && form.signed && !form.complete
33+
return (processingCommitment && processingCommitment.id && !form.complete) || (processingCommitment && form.signed && !form.complete && isChainSupported)
3434
}
3535
},
3636
{

0 commit comments

Comments
 (0)