From e866662f4d7a7d6d5c1b36ba584beb8b7c4f34aa Mon Sep 17 00:00:00 2001 From: Chukwumdiebube Date: Fri, 20 Jan 2023 16:51:53 +0100 Subject: [PATCH] addition to this --- src/component/Blog/Blog/Main.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/component/Blog/Blog/Main.js b/src/component/Blog/Blog/Main.js index 5efc2a5..0a860ad 100644 --- a/src/component/Blog/Blog/Main.js +++ b/src/component/Blog/Blog/Main.js @@ -17,6 +17,10 @@ const Main = ({ brdcum, bgimg }) => { }, []); const getBlogData = async () => { + /* + The reason for this, is because of the breaking I had when building the blog + I decided to save to the local storage for an hour so that it won't need to be going to the server again but I can change this + */ // Saving it locally to avoid interfering with server if (localStorage.getItem("myFit--blogData") == null) { try { @@ -95,7 +99,7 @@ const Main = ({ brdcum, bgimg }) => {
{blogData.map((data, index) => { - console.log(data) + console.log(data); if (index == 0) { return (