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 = () => {
|
const userImage = () => {
|
||||||
if (props.user)
|
if (props.user && props.user.picture) {
|
||||||
return (
|
return (
|
||||||
<img
|
<img
|
||||||
alt={props.user.picture.picture}
|
alt={props.user.picture.picture}
|
||||||
className={`profile ${props.user.picture.element}`}
|
className={`profile ${props.user.picture.element}`}
|
||||||
srcSet={`/profile/${props.user.picture.picture}.png,
|
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`}
|
src={`/profile/${props.user.picture.picture}.png`}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
else return <div className="no-user" />
|
} else return <div className="no-user" />
|
||||||
}
|
}
|
||||||
|
|
||||||
const details = (
|
const details = (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue