pancakeswap / pancake-frontend

:pancakes: Pancake main features (farms, pools, IFO, lottery, profiles)
https://pancakeswap.finance
GNU General Public License v3.0
2.69k stars 3.55k forks source link

Button for switching currency pair not working properly #2854

Closed khDev01 closed 2 years ago

khDev01 commented 2 years ago

Is there an existing issue for this?

Product

Other

Current Behavior

Pressing the button to switch the currency pair (i.e the button that changes bnb/busd to busd/bnb) around does not work properly. This only works when specifically pressing the arrow within the button and not the edges of the button.

Expected Behavior

Pressing the button to swap currencies around should swap the currencies.

Steps To Reproduce

  1. Open any browser
  2. Go to https://pancakeswap.finance/swap
  3. Click not in the center of the button which switches the currency pair around. (clicking out of the hitbox for the arrow)

Environment

- Device: N/A 
- OS: N/A
- Browser: Any desktop browser
- Wallet: N/A

Anything else?

No response

0xjojoex commented 2 years ago

Hey! Thanks for raising this. I had a branch to fix this, but I was getting too busy that I forgot it 😅