Merge branch 'master' of https://gitlab.chiefsoft.net/MyFit/www-myfit into myFit--BlogDetails

This commit is contained in:
Chukwumdiebube
2023-01-20 16:50:57 +01:00
10 changed files with 61 additions and 46 deletions
+4
View File
@@ -21,6 +21,10 @@ const Main = ({ brdcum }) => {
}, [blogData]);
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 {