Fix build errors

This commit is contained in:
Justin Edmund 2022-12-23 16:27:11 -08:00
parent c44651015e
commit 221f60c48c
2 changed files with 7 additions and 7 deletions

View file

@ -60,7 +60,7 @@
img {
$diameter: $unit * 6;
border-radius: $diameter / 2;
border-radius: calc($diameter / 2);
height: $diameter;
width: $diameter;

View file

@ -119,14 +119,14 @@ const GridRep = (props: Props) => {
}
const userImage = () => {
if (props.user && props.user.picture) {
if (props.user && props.user.avatar) {
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`}
src={`/profile/${props.user.picture.picture}.png`}
alt={props.user.avatar.picture}
className={`profile ${props.user.avatar.element}`}
srcSet={`/profile/${props.user.avatar.picture}.png,
/profile/${props.user.avatar.picture}@2x.png 2x`}
src={`/profile/${props.user.avatar.picture}.png`}
/>
)
} else return <div className="no-user" />