Merge pull request #1903 from RafaelTaranto/fix/customer-sidebard-rerenders

LAM-1479 fix: prevent customer sidebar from re-rendering
This commit is contained in:
Rafael Taranto 2025-07-03 14:09:49 +01:00 committed by GitHub
commit 4efd40e1dd

View file

@ -529,7 +529,7 @@ const CustomerProfile = memo(() => {
</Breadcrumbs>
<div className="flex gap-20">
<div className="w-55 flex flex-col gap-6">
{!loading && !customerData.isAnonymous && (
{!!customerData && !customerData.isAnonymous && (
<>
<CustomerSidebar
isSelected={code => code === clickedItem}