@rango-dev/widget-embedded 0.1.12 → 0.1.13-next.0

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.
@@ -2481,7 +2481,8 @@ function HistoryPage() {
2481
2481
  navigateBackFrom
2482
2482
  } = useNavigateBack();
2483
2483
  const {
2484
- manager
2484
+ manager,
2485
+ state
2485
2486
  } = useManager();
2486
2487
  const pendingSwaps = getPendingSwaps(manager).map(_ref => {
2487
2488
  let {
@@ -2489,7 +2490,7 @@ function HistoryPage() {
2489
2490
  } = _ref;
2490
2491
  return swap;
2491
2492
  });
2492
- const loading = !manager?.isLoaded();
2493
+ const loading = !state.loadedFromPersistor;
2493
2494
  return React.createElement(History, {
2494
2495
  list: pendingSwaps,
2495
2496
  groupBy: groupSwapsByDate,
@@ -2842,7 +2843,8 @@ function SwapDetailsPage() {
2842
2843
  } = useNavigateBack();
2843
2844
  const [isCopied, handleCopy] = useCopyToClipboard(2000);
2844
2845
  const {
2845
- manager
2846
+ manager,
2847
+ state
2846
2848
  } = useManager();
2847
2849
  const pendingSwaps = getPendingSwaps(manager);
2848
2850
  const selectedSwap = pendingSwaps.find(_ref => {
@@ -2856,7 +2858,7 @@ function SwapDetailsPage() {
2856
2858
  if (swap) cancelSwap(swap);
2857
2859
  };
2858
2860
  const swap = selectedSwap?.swap;
2859
- const loading = !manager?.isLoaded();
2861
+ const loading = !state.loadedFromPersistor;
2860
2862
  if (!swap) return React.createElement(SwapDetailsPlaceholder, {
2861
2863
  requestId: selectedSwapRequestId || '',
2862
2864
  loading: loading,