diff --git a/src/libs/PolicyUtils.ts b/src/libs/PolicyUtils.ts index e53c60ab3bb2..22d2adedc65d 100644 --- a/src/libs/PolicyUtils.ts +++ b/src/libs/PolicyUtils.ts @@ -83,7 +83,7 @@ const isPolicyAdmin = (policy: OnyxInputOrEntry | SearchPolicy, currentU * Checks if we have any errors stored within the policy?.employeeList. Determines whether we should show a red brick road error or not. */ function shouldShowEmployeeListError(policy: OnyxEntry): boolean { - return Object.values(policy?.employeeList ?? {}).some((employee) => Object.keys(employee?.errors ?? {}).length > 0); + return isPolicyAdmin(policy) && Object.values(policy?.employeeList ?? {}).some((employee) => Object.keys(employee?.errors ?? {}).length > 0); } /**