diff --git a/src/components/User/Profile.jsx b/src/components/User/Profile.jsx index c83c03f..590952c 100644 --- a/src/components/User/Profile.jsx +++ b/src/components/User/Profile.jsx @@ -22,21 +22,43 @@ const ProfileView = ({ user }) => ( {user.email || "No email!"} - {user.client && "Client"}{user.provider && "Provider"} - {!user.client && !user.provider && "User Registration Not Completed"} + {!user.client && + !user.provider && + "User Registration Not Completed"} {user.first_name} {user.last_name} - {user.userinfo && - {Object.keys(user.userinfo).map(function(key) { - return ( - {key}: {user.userinfo[key]} - ) - })} - } + + {user.userinfo && + Object.keys(user.userinfo).map(function(key) { + return ( + + {key}: {user.userinfo[key]} + + ); + })} + {user.client && + Object.keys(user.client).map(function(key) { + return ( + + {key}: {user.client[key]} + + ); + })} + {user.provider && + Object.keys(user.provider).map(function(key) { + return ( + + {key}: {user.provider[key]} + + ); + })} + -