Display error message for multiple requests

This commit is contained in:
IshaVenikar 2024-07-15 15:26:48 +05:30 committed by Adw8
parent 4f30e53d86
commit fa5c865f0d

View File

@ -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');
}