diff --git a/django/contrib/admin/static/admin/js/nav_sidebar.js b/django/contrib/admin/static/admin/js/nav_sidebar.js index 9b558ca2e7..70685f2c06 100644 --- a/django/contrib/admin/static/admin/js/nav_sidebar.js +++ b/django/contrib/admin/static/admin/js/nav_sidebar.js @@ -10,7 +10,7 @@ main.classList.toggle('shifted', navSidebarIsOpen === 'true'); toggleNavSidebar.addEventListener('click', function() { - if (navSidebarIsOpen == 'true') { + if (navSidebarIsOpen === 'true') { navSidebarIsOpen = 'false'; } else { navSidebarIsOpen = 'true';