From 68d75277c2490cd25c6f52dd18663fba0c5cd932 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Mon, 16 Jun 2025 18:28:50 -0500 Subject: [PATCH] fix(lots): corrections to role issue where user logged in but no role set yet --- frontend/src/components/production/ocp/Lots.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/production/ocp/Lots.tsx b/frontend/src/components/production/ocp/Lots.tsx index 7129229..e4cb203 100644 --- a/frontend/src/components/production/ocp/Lots.tsx +++ b/frontend/src/components/production/ocp/Lots.tsx @@ -242,7 +242,9 @@ export default function Lots() { {lot.overPrinting} {user && - roles.includes(accessRoles[0].role) && ( + roles.includes( + accessRoles[0]?.role + ) && ( <> {server === "usday1vms006" || server === "localhost" ? (