Skip to content

Commit

Permalink
only log fetch fail, if it actually failed
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsVipra committed Jul 15, 2023
1 parent fe5b458 commit 2a1d57f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libs/fetchPronouns.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ export async function fetchPronouns(dataID, accountName, type) {
status = await fetchStatus(dataID);
}

log(`Fetching ${type} failed, trying notification instead.`);
if (!status) status = await fetchNotification(dataID); //fallback for glitch-soc notifications
if (!status) {
log(`Fetching ${type} failed, trying notification instead.`);
status = await fetchNotification(dataID);
} //fallback for glitch-soc notifications

let pronouns = await extractFromStatus(status);
if (!pronouns) {
Expand Down

0 comments on commit 2a1d57f

Please sign in to comment.