Check empty result

This commit is contained in:
MD. Ariful Alam
2021-08-28 23:52:05 +06:00
parent 4f676edfc8
commit f8556e88ac
3 changed files with 9 additions and 6 deletions

View File

@@ -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));