Skip to content

Commit

Permalink
Merge pull request #1479 from NYPL/MLN-1304
Browse files Browse the repository at this point in the history
added currentuser  condition
  • Loading branch information
gonuguntla authored Dec 30, 2024
2 parents 27bc9f7 + d375e34 commit 3628b50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ export default function TeacherSetDetails(props) {
};

const inactiveSchoolMessage = () => {
if (currentUserStatus !== undefined && isSchoolActive !== "" && isSchoolActive == false) {
if (currentUserStatus && isSchoolActive === false) {
return (<Banner content={<>
Your school is inactive, so your account is restricted. Please contact [email protected].
</>} type="warning" />)
Expand Down
1 change: 1 addition & 0 deletions app/models/teacher_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def update_teacher_set_availability_in_elastic_search
body = {
:availability => self.availability,
:available_copies => self.available_copies,
:total_copies => self.total_copies,
}
ElasticSearch.new.update_document_by_id(self.id, body)
end
Expand Down

0 comments on commit 3628b50

Please sign in to comment.