@rango-dev/widget-embedded 0.36.1-next.4 → 0.36.1-next.5

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.36.1-next.4",
3
+ "version": "0.36.1-next.5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -54,4 +54,4 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  }
57
- }
57
+ }
@@ -103,6 +103,11 @@ export function useFetchCustomToken(): UseFetchCustomToken {
103
103
 
104
104
  return token;
105
105
  } catch (error: any) {
106
+ if (error?.code === 'ERR_BAD_REQUEST') {
107
+ const errorMessage = produceErrorMessage('not-found', blockchain);
108
+ setError(errorMessage);
109
+ return undefined;
110
+ }
106
111
  setError(undefined);
107
112
  throw new Error(error.message);
108
113
  } finally {