From 1556e4c019f2b9952aad5b3bf7fa1fb3323ffd0f Mon Sep 17 00:00:00 2001 From: Wender Lima Date: Wed, 9 Oct 2024 15:48:38 -0400 Subject: [PATCH] Fixed undo destructure --- react/components/UserWidget.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/components/UserWidget.tsx b/react/components/UserWidget.tsx index 6c09819c..19ef2412 100644 --- a/react/components/UserWidget.tsx +++ b/react/components/UserWidget.tsx @@ -326,7 +326,7 @@ const UserWidget: VtexFunctionComponent = ({ return } - const uiSettings = userWidgetData?.getB2BSettings + const uiSettings = userWidgetData?.getB2BSettings?.uiSettings if (uiSettings?.showModal) { const totalCompanies = userWidgetData?.getOrganizationsByEmail?.length