Skip to content

Commit

Permalink
Update loadmore.js
Browse files Browse the repository at this point in the history
  • Loading branch information
EuJinnLucaShow committed Nov 11, 2023
1 parent 81713c6 commit a4659a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/loadmore.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ async function fetchGallery() {
const { hits, totalHits } = result;

if (!hits.length) {
loadMoreButton.classList.add('is-hidden')
showErrorToast("Sorry, there are no images matching your search query. Please try again.");
return;
}
Expand Down

0 comments on commit a4659a8

Please sign in to comment.