From cfba72d2ec8c9350d2524f5b87b5c63946b78eba Mon Sep 17 00:00:00 2001 From: Lucas Schoenfelder <les17@inf.ufpr.br> Date: Mon, 8 Feb 2021 21:22:12 -0300 Subject: [PATCH] fixed incorrect invalid avatar check; now should correctly display default avatar --- src/Components/MenuList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/MenuList.js b/src/Components/MenuList.js index 0b2963f7..643b4b04 100644 --- a/src/Components/MenuList.js +++ b/src/Components/MenuList.js @@ -68,7 +68,7 @@ export default function MenuList(props) { > <div style={{borderRadius: "50%", border: "2px solid #fff", background: "#fff", overflow: "hidden", maxWidth : "50px", maxHeight : "50px"}}> { - state.currentUser.avatar === '' || state.currentUser.avatar === null ? + state.currentUser.avatar === '' || state.currentUser.avatar === null || state.currentUser.avatar === undefined ? ( <img src={Profile} alt={'user avatar'} style={{width:"100%", height:"100%", verticalAlign : "middle", marginLeft : "0"}}/> -- GitLab