From 0c37d5b3e3d837deb17f526ed7dff94d8ce36fa4 Mon Sep 17 00:00:00 2001 From: NJ-2020 Date: Wed, 28 Aug 2024 19:18:54 -0700 Subject: [PATCH] fix workspaces list rbr --- src/pages/workspace/WorkspacesListPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/workspace/WorkspacesListPage.tsx b/src/pages/workspace/WorkspacesListPage.tsx index 94fb454c4a2d..98d071780a23 100755 --- a/src/pages/workspace/WorkspacesListPage.tsx +++ b/src/pages/workspace/WorkspacesListPage.tsx @@ -306,7 +306,7 @@ function WorkspacesListPage({policies, reimbursementAccount, reports, session}: * Add free policies (workspaces) to the list of menu items and returns the list of menu items */ const workspaces = useMemo(() => { - const reimbursementAccountBrickRoadIndicator = reimbursementAccount?.errors ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : undefined; + const reimbursementAccountBrickRoadIndicator = !isEmptyObject(reimbursementAccount?.errors) ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : undefined; if (isEmptyObject(policies)) { return []; }