mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-11 18:04:27 +08:00
different error if status is 503
This commit is contained in:
parent
86371ae432
commit
98e069ae7e
1 changed files with 8 additions and 1 deletions
|
|
@ -145,7 +145,14 @@ async function getAccountAlerts(): Promise<void> {
|
|||
|
||||
$("#alertsPopup .accountAlerts .list").empty();
|
||||
|
||||
if (inboxResponse.status !== 200) {
|
||||
if (inboxResponse.status === 503) {
|
||||
$("#alertsPopup .accountAlerts .list").html(`
|
||||
<div class="nothing">
|
||||
Account inboxes are temporarily unavailable.
|
||||
</div>
|
||||
`);
|
||||
return;
|
||||
} else if (inboxResponse.status !== 200) {
|
||||
$("#alertsPopup .accountAlerts .list").html(`
|
||||
<div class="nothing">
|
||||
Error getting inbox: ${inboxResponse.message} Please try again later.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue