'Ethernaut challenge -Lv22 Dex - allowance approval problem

I'm trying to complete the Dex level of ethernaut challenge which is quite easy. In order to use swap I need firstly to approve token allowance, but I don't understand why when I call the approve function metamask get stucked without giving me any possibility of signing the transaction.



Solution 1:[1]

I believe there is something with metamask trying to display two ERC20 token approval messages Try approving your token amount separately for each token

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ivan L