Fix wrong logic for silent fail

Some mastodon instances are getting swamped
This commit is contained in:
Lim Chee Aun 2022-12-27 21:30:18 +08:00
parent 605e6ac588
commit e7cff25337

View file

@ -83,11 +83,12 @@ function StatusPage({ id }) {
states.statuses.set(id, heroStatus);
} catch (e) {
// Silent fail if status is cached
console.error(e);
if (!hasStatus) {
setUIState('error');
alert('Error fetching status');
return;
}
return;
}
try {