Skip to content

Commit

Permalink
Merge pull request balancer#203 from balancer-labs/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
mikemcdonald authored Mar 17, 2020
2 parents ddb094f + 32d85a5 commit cbc500c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/SwapForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,13 @@ const SwapForm = observer(({ tokenIn, tokenOut }) => {

const areInputOutputTokensEqual =
swapFormStore.inputs.inputToken ===
swapFormStore.inputs.outputToken;
swapFormStore.inputs.outputToken ||
(swapFormStore.inputs.inputToken === 'ether' &&
swapFormStore.inputs.outputToken ===
tokenStore.getWethAddress(supportedChainId)) ||
(swapFormStore.inputs.inputToken ===
tokenStore.getWethAddress(supportedChainId) &&
swapFormStore.inputs.outputToken === 'ether');

if (
buttonState === ButtonState.UNLOCK ||
Expand Down

0 comments on commit cbc500c

Please sign in to comment.