Skip to content

Commit

Permalink
Merge pull request #48231 from NJ-2020/fix/workspaces-list-rbr
Browse files Browse the repository at this point in the history
  • Loading branch information
dangrous authored Aug 29, 2024
2 parents e77f204 + 0c37d5b commit 8e52302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/workspace/WorkspacesListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
}
Expand Down

0 comments on commit 8e52302

Please sign in to comment.