don't alert for 501 api errors

This commit is contained in:
ihateblueb 2025-03-15 11:16:59 -04:00
commit d184bdadea
2 changed files with 5 additions and 0 deletions

View file

@ -2,6 +2,7 @@
- added bite notification support
- add bite user and bite status buttons on status and status detailed components
- don't alert for 501 api errors
# Chuckya (standalone frontend)

View file

@ -44,6 +44,10 @@ export const showAlertForError = (error, skipNotFound = false) => {
});
}
// Reduce unnecessary popups for Iceshrimp.NET 501s
if (status === 501)
return null;
return showAlert({
title: `${status}`,
message: data.error || statusText,