Skip to content

Commit

Permalink
add two
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg833 committed May 23, 2023
1 parent b907c0c commit 465d06e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/Country.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const Country = () => {
setCountry(data);
})
.catch(err => {
alert(err.massage);
alert(err.massage ?? `Server Off`);
})
.finally(() => {
setIsLoading(false);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/CountrySearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const CountrySearch = () => {
setCountries(data);
})
.catch(err => {
alert(err.massage);
alert(err.massage ?? `Server Off`);
})
.finally(() => {
setIsLoading(false);
Expand Down

0 comments on commit 465d06e

Please sign in to comment.