Skip to content

Commit

Permalink
fix error bug
Browse files Browse the repository at this point in the history
  • Loading branch information
manch0ffline committed Nov 11, 2024
1 parent 5a3da6e commit 38ccd4c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/PeoplePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ export const PeoplePage = () => {
setErrorMessage('');
}
})
.catch(error => {
.catch(() => {
setErrorMessage('Something went wrong');
throw error;
})
.finally(() => {
setLoader(false);
Expand Down

0 comments on commit 38ccd4c

Please sign in to comment.