From a4659a816f64c9591521588134fac415aa825948 Mon Sep 17 00:00:00 2001 From: Yevhenii Lukashov <115802889+EuJinnLucaShow@users.noreply.github.com> Date: Sun, 12 Nov 2023 00:22:52 +0200 Subject: [PATCH] Update loadmore.js --- src/js/loadmore.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/loadmore.js b/src/js/loadmore.js index 245c398..d8bb833 100644 --- a/src/js/loadmore.js +++ b/src/js/loadmore.js @@ -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; }