@rango-dev/widget-embedded 0.35.1-next.0 → 0.35.1-next.2

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.35.1-next.0",
3
+ "version": "0.35.1-next.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -25,7 +25,7 @@
25
25
  "@lingui/core": "4.2.1",
26
26
  "@lingui/react": "4.2.1",
27
27
  "@rango-dev/logging-core": "^0.6.0",
28
- "@rango-dev/provider-all": "^0.39.0",
28
+ "@rango-dev/provider-all": "^0.39.1-next.0",
29
29
  "@rango-dev/queue-manager-core": "^0.27.0",
30
30
  "@rango-dev/queue-manager-rango-preset": "^0.39.0",
31
31
  "@rango-dev/queue-manager-react": "^0.27.0",
@@ -54,4 +54,4 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  }
57
- }
57
+ }
@@ -180,6 +180,17 @@ export function handleQuoteErrors(error: any): ConfirmSwapFetchResult {
180
180
  };
181
181
  }
182
182
 
183
+ if (error?.code === 'ERR_BAD_REQUEST') {
184
+ return {
185
+ swap: null,
186
+ error: {
187
+ type: QuoteErrorType.NO_RESULT,
188
+ diagnosisMessage: error.response.data.error,
189
+ },
190
+ warnings: null,
191
+ };
192
+ }
193
+
183
194
  return {
184
195
  swap: null,
185
196
  error: {