@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
|
@@ -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 {
|