This commit is contained in:
Valentino Kozinec 2022-02-10 14:57:53 +01:00
parent ae61e7bf94
commit a4a3b7be64

View file

@ -79,7 +79,7 @@ const Header: React.FC<HeaderProps> = () => {
<Menu.Button className="bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary">
<span className="sr-only">Open user menu</span>
<span className="inline-flex items-center justify-center h-8 w-8 rounded-full bg-gray-500 overflow-hidden">
<Gravatar email={currentUser.email || ''} size={32} rating="pg" protocol="https://" />
<Gravatar email={currentUser?.email || undefined} size={32} rating="pg" protocol="https://" />
</span>
</Menu.Button>
</div>