No more flakes and make us green again (#2771)

* No more flakes and see green

* remove extra id

* try again

* again

* again

* Fix Avatar test and make snap test more robust

* Remove extra attribute
This commit is contained in:
49fl
2024-06-25 13:56:11 -04:00
committed by GitHub
parent 8fe2d33063
commit e1bf55cc4a
7 changed files with 67 additions and 30 deletions

View File

@ -20,6 +20,12 @@ const UserSidebarMenu = ({ user }: { user?: User }) => {
const navigate = useNavigate()
const send = useSettingsAuthContext()?.auth?.send
// This image host goes down sometimes. We will instead rewrite the
// resource to be a local one.
if (user?.image === 'https://placekitten.com/200/200') {
user.image = '/cat.jpg'
}
// Fallback logic for displaying user's "name":
// 1. user.name
// 2. user.first_name + ' ' + user.last_name