Display error message for multiple requests
This commit is contained in:
parent
4f30e53d86
commit
fa5c865f0d
@ -53,7 +53,8 @@ const SignWithCosmos = () => {
|
||||
}),
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
if (response.status === 429) {
|
||||
enqueueSnackbar(response.statusText, { variant: "error" });
|
||||
throw new Error('Failed to send request');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user