diff --git a/src/components/pages/profile.js b/src/components/pages/profile.js index 919035f..ce83594 100644 --- a/src/components/pages/profile.js +++ b/src/components/pages/profile.js @@ -250,6 +250,21 @@ const ProfileJsx = ({ navigation }) => { const RawProfileJsx = (props) => { let profileButton; + + /* Some profiles won't have a note, and react-native-render-html will + * issue a warning if it isn't passed any content. So, if there's no + * note with the account (or if it's an empty string, possibly), the + * element shouldn't be rendered at all. + */ + let noteIfPresent = <>>; + if (props.profile.note != null && props.profile.note.length != "") { + noteIfPresent = ( +
+ ); + } + if (props.own) { profileButton = (