Try fixing element error on prod
This commit is contained in:
parent
21b86e4239
commit
ec737757c0
1 changed files with 3 additions and 3 deletions
|
|
@ -110,17 +110,17 @@ const GridRep = (props: Props) => {
|
|||
}
|
||||
|
||||
const userImage = () => {
|
||||
if (props.user)
|
||||
if (props.user && props.user.picture) {
|
||||
return (
|
||||
<img
|
||||
alt={props.user.picture.picture}
|
||||
className={`profile ${props.user.picture.element}`}
|
||||
srcSet={`/profile/${props.user.picture.picture}.png,
|
||||
/profile/${props.user.picture.picture}@2x.png 2x`}
|
||||
/profile/${props.user.picture.picture}@2x.png 2x`}
|
||||
src={`/profile/${props.user.picture.picture}.png`}
|
||||
/>
|
||||
)
|
||||
else return <div className="no-user" />
|
||||
} else return <div className="no-user" />
|
||||
}
|
||||
|
||||
const details = (
|
||||
|
|
|
|||
Loading…
Reference in a new issue