@skip-go/widget 2.3.5 → 2.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.es.js CHANGED
@@ -4654,7 +4654,9 @@ const makeChainIDsWithAction = ({ route, actions, }) => {
4654
4654
  return (action.fromChainID === chainRoute[0] &&
4655
4655
  action.toChainID === chainRoute[1]);
4656
4656
  });
4657
- const swapAction = actions.find((action) => {
4657
+ const reversedActions = actions.slice().reverse();
4658
+ // Find the last swap action that matches conditions
4659
+ const swapAction = reversedActions.find((action) => {
4658
4660
  if (index === 0 &&
4659
4661
  actions.length <= 2 &&
4660
4662
  action.type === 'SWAP' &&