Skip to content

Commit

Permalink
Added Error Handling for Unavailable user details.
Browse files Browse the repository at this point in the history
  • Loading branch information
tanu-chahal committed Dec 12, 2024
1 parent e952d6d commit f388442
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extension-requests/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ const currentUserDetailsPromise = getSelfUser()
})
.catch((error) => {
currentUserDetails = null;
if (isDev) {
showToast(error?.message || "Couldn't fetch user details.", 'error');
}
});

async function populateExtensionRequests(query = {}, newLink) {
Expand Down

0 comments on commit f388442

Please sign in to comment.