6c13a4db99ad6efef393ab837b3cbefacde6bd14
chmalee
  Mon May 22 16:02:29 2023 -0700
Fix truthiness syntax after checking localStorage

diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js
index 16240eb..ba50525 100644
--- src/hg/js/hgTracks.js
+++ src/hg/js/hgTracks.js
@@ -5481,31 +5481,31 @@
         newLink.setAttribute("name", "downloadTracks");
         newLink.textContent = "Download Current Track Data";
         newLink.href = "#";
         newListEl.appendChild(newLink);
         $("#downloads > ul")[0].appendChild(newListEl);
         $("#hgTracksDownload").click(downloadCurrentTrackData.showDownloadUi);
     }
 
     // show a tutorial page if this is a new user
     if (typeof tour !== 'undefined' && tour) {
         let lsKey = "hgTracks_hideTutorial";
         let isUserLoggedIn = (typeof userLoggedIn !== 'undefined' && userLoggedIn === true);
         let hideTutorial = localStorage.getItem(lsKey);
         // if the user is not logged in and they have not already gone through the
         // tutorial
-        if (!isUserLoggedIn && (typeof hideTutorial === 'undefined' && !hideTutorial)) {
+        if (!isUserLoggedIn && !hideTutorial) {
             let msg = "We now have a guided tutorial available, " +
                 "to start the tutorial " +
                 "<a id='showTutorialLink' href=\"#showTutorial\">click here</a>.";
             notifBoxSetup("hgTracks", "hideTutorial", msg);
             notifBoxShow("hgTracks", "hideTutorial");
             $("#showTutorialLink").click(function() {
                 $("#hgTracks_hideTutorialnotifyHide").click();
                 tour.start();
             });
         }
         // allow user to bring the tutorial up under the help menu whether they've seen
         // it or not
         let tutorialLinkMenuItem = document.createElement("li");
         tutorialLinkMenuItem.id = "hgTracksHelpTutorialMenuItem";
         tutorialLinkMenuItem.innerHTML = "<a id='hgTracksHelpTutorialLink' href='#showTutorial'>" +