@rango-dev/widget-embedded 0.1.10-next.94 → 0.1.10-next.96

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.
@@ -549,7 +549,7 @@ function hasHighFee(totalFeeInUsd) {
549
549
  }
550
550
  function getMinRequiredSlippage(route) {
551
551
  const slippages = route.result?.swaps.map(slippage => slippage.recommendedSlippage);
552
- return slippages?.map(s => s?.slippage || 0)?.filter(s => s > 0)?.sort((a, b) => b - a)?.find(() => true) || null;
552
+ return slippages?.map(s => parseFloat(s?.slippage || '0'))?.filter(s => s > 0)?.sort((a, b) => b - a)?.find(() => true) || null;
553
553
  }
554
554
  function hasProperSlippage(userSlippage, minRequiredSlippage) {
555
555
  if (!minRequiredSlippage) return true;
@@ -1971,6 +1971,8 @@ function ConfirmSwapPage() {
1971
1971
  if (swap) {
1972
1972
  manager?.create('swap', {
1973
1973
  swapDetails: swap
1974
+ }, {
1975
+ id: swap.requestId
1974
1976
  });
1975
1977
  setSelectedSwap(swap.requestId);
1976
1978
  navigate(navigationRoutes.swaps + `/${swap.requestId}`, {