Updated profile components to display loading placeholders

• Updated:
- profile components to display loading placeholders instead of error message on load
This commit is contained in:
mgabdev
2020-07-29 15:49:18 -05:00
parent 13127960c4
commit 60f6900df7
4 changed files with 5 additions and 4 deletions

View File

@@ -142,7 +142,7 @@ class ProfileHeader extends ImmutablePureComponent {
}
const headerSrc = !!account ? account.get('header') : undefined
const headerMissing = headerSrc.indexOf(PLACEHOLDER_MISSING_HEADER_SRC) > -1 || !headerSrc
const headerMissing = !headerSrc ? true : headerSrc.indexOf(PLACEHOLDER_MISSING_HEADER_SRC) > -1
const avatarSize = headerMissing ? 75 : 150
const top = headerMissing ? -46 : -380