@rango-dev/widget-embedded 0.23.1-next.26 → 0.23.1-next.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/widget-embedded",
3
- "version": "0.23.1-next.26",
3
+ "version": "0.23.1-next.27",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -109,6 +109,8 @@ export function SwapDetails(props: SwapDetailsProps) {
109
109
  if (swap.status === 'success' || swap.status === 'failed') {
110
110
  setShowCompletedModal(swap.status);
111
111
  setAsRead(swap.requestId);
112
+ } else if (showCompletedModal) {
113
+ setShowCompletedModal(null);
112
114
  }
113
115
  }
114
116
  }, [swap.status, swap.requestId]);