addition to this

This commit is contained in:
Chukwumdiebube
2023-01-20 16:51:53 +01:00
parent b5f78d1372
commit e866662f4d
+5 -1
View File
@@ -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 }) => {
<section className="row_am blog_list_main">
{blogData.map((data, index) => {
console.log(data)
console.log(data);
if (index == 0) {
return (
<div