From f8556e88ac1c7b54a5a67b1a032a549fefc37ffc Mon Sep 17 00:00:00 2001 From: "MD. Ariful Alam" Date: Sat, 28 Aug 2021 23:52:05 +0600 Subject: [PATCH] Check empty result --- README.md | 4 ++-- src/App.js | 8 ++++---- tailwind.config.js | 3 +++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ddec546..4e23643 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ npm start ## 🎨 Customization -All the magic happens in the file src/config. Open it and modify it according to your preference. +All the magic happens in the file src/config.js. Open it and modify it according to your preference. These are the default values: @@ -380,7 +380,7 @@ The posts are fetched by [Article-api](https://github.com/arifszn/article-api). Once you are done with your setup and have completed all steps above, you need to put your website online! The fastest approach is to use [GitHub Pages](https://pages.github.com) which is completely free. **1. Github Pages:** - - Rename your forked repository to username.github.io, where username is your GitHub username (or organization name). + - Rename your forked repository to username.github.io in github, where username is your GitHub username (or organization name). - Open package.json, and change homepage's value to username.github.io. ```js diff --git a/src/App.js b/src/App.js index 1a57c6e..845d6b4 100644 --- a/src/App.js +++ b/src/App.js @@ -37,10 +37,10 @@ function App() { let profileData = { avatar: data.avatar_url, - name: data.name, - bio: data.bio, - location: data.location, - company: data.company + name: data.name ? data.name : '', + bio: data.bio ? data.bio : '', + location: data.location ? data.location : '', + company: data.company ? data.company : '' } dispatch(setProfile(profileData)); diff --git a/tailwind.config.js b/tailwind.config.js index adafce9..c4340b7 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -10,4 +10,7 @@ module.exports = { plugins: [ require('daisyui') ], + daisyui: { + logs: false + }, }