From 541155537f53400bd4bff611394604f7a22c452a Mon Sep 17 00:00:00 2001 From: Deepika Gonuguntla Date: Mon, 23 Dec 2024 14:04:10 -0500 Subject: [PATCH] Added current user status for inactive school --- .../components/TeacherSetDetails/TeacherSetDetails.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/components/TeacherSetDetails/TeacherSetDetails.jsx b/app/javascript/components/TeacherSetDetails/TeacherSetDetails.jsx index fb493a2e..094e0480 100644 --- a/app/javascript/components/TeacherSetDetails/TeacherSetDetails.jsx +++ b/app/javascript/components/TeacherSetDetails/TeacherSetDetails.jsx @@ -534,7 +534,7 @@ export default function TeacherSetDetails(props) { }; const inactiveSchoolMessage = () => { - if (isSchoolActive !== "" && isSchoolActive == false) { + if (currentUserStatus !== undefined && isSchoolActive !== "" && isSchoolActive == false) { return ( Your school is inactive, so your account is restricted. Please contact help@mylibrarynyc.org. } type="warning" />)