mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-16 07:11:15 +03:00
Fix wrong logic for silent fail
Some mastodon instances are getting swamped
This commit is contained in:
parent
605e6ac588
commit
e7cff25337
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue