pendulum-chain / pendulum-webapp

Repository for the testnet prototype of the Pendulum web application
GNU General Public License v3.0
1 stars 0 forks source link

Minor bug on AMM error message #22

Open gonzamontiel opened 2 years ago

gonzamontiel commented 2 years ago

Something is broken with the submission tracker, the following

submission
      .track(swap(amount, swapAsset1).catch((e) => setToast(e?.message)))
      .then(() => setToast('Swap successful!'))
      .catch((e) => setToast(e?.message));

will never show the error message that is passed by the reject in the swap() function.