From 547b17e00b0d63efdc5455e5059ecb965aa78249 Mon Sep 17 00:00:00 2001
From: MisterGetman <99386291+MisterGetman@users.noreply.github.com>
Date: Sun, 30 Jun 2024 05:50:16 +0300
Subject: [PATCH] Done.
---
src/main.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main.js b/src/main.js
index 6af7060..6ae69c3 100644
--- a/src/main.js
+++ b/src/main.js
@@ -49,7 +49,7 @@ async function handleFormSubmit(e) {
loader.classList.toggle('hidden');
}
-async function handleLoadButtonClick(e) {
+async function handleLoadButtonClick() {
loader.classList.toggle('hidden');
page++;
@@ -80,7 +80,7 @@ async function loadAndRenderPics() {
} catch (error) {
showNotification({
title: 'Error:',
- message: error,
+ message: error.message,
backgroundColor: 'tomato',
});
}
@@ -99,7 +99,7 @@ async function loadAndRenderMorePics() {
} catch (error) {
showNotification({
title: 'Error:',
- message: error,
+ message: error.message,
backgroundColor: 'tomato',
});
}