fix: prevent customer sidebar from re-rendering

This commit is contained in:
Rafael Taranto 2025-07-02 08:55:24 +01:00
parent f49b8f4f46
commit 8d1428c399

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}