diff --git a/src/components/pages/profile.js b/src/components/pages/profile.js index 6af023d..8c89d1c 100644 --- a/src/components/pages/profile.js +++ b/src/components/pages/profile.js @@ -157,7 +157,6 @@ const ProfileDisplayJsx = ({navigation}) => { const profile = JSON.parse(profileJSON[1]); const notifications = JSON.parse(notificationsJSON[1]); - console.log(notifications); setState({ profile: profile, unreadNotifications: notifications.unread, @@ -259,8 +258,8 @@ const ProfileDisplayJsx = ({navigation}) => { {state.profile.note} - { - state.profile.fields.map((field, index) => ( + { state.profile.fields + ? state.profile.fields.map((field, index) => ( @@ -276,6 +275,7 @@ const ProfileDisplayJsx = ({navigation}) => { )) + : <> } {profileButton}