sdy

add avatar prop condition

......@@ -15,6 +15,9 @@ const ProfileIcon = styled.img`
`;
export default ({ avatar }) => {
if (avatar === "") {
avatar = "../imgs/defaultProfile.jpg";
}
return (
<ProfileIconBox className="ProfileIconBox">
<ProfileIcon src={avatar} />
......