From d782bf9fd72b53733b51fa64e31e5dea6e906521 Mon Sep 17 00:00:00 2001 From: rasarkar <105652044+rasarkar@users.noreply.github.com> Date: Mon, 30 Oct 2023 06:59:14 -0400 Subject: [PATCH] CONCD-483 fixed an issue (#2155) * CONCD-483 fixed an issue where, if a user navigated to an asset, tutorial was not popping up * CONCD-483 don't set the key and then immediately clear it --- concordia/templates/base.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/concordia/templates/base.html b/concordia/templates/base.html index 5c95c180a..b7cbe7508 100644 --- a/concordia/templates/base.html +++ b/concordia/templates/base.html @@ -299,11 +299,13 @@

Follow if (keyName) { const campaign = localStorage.getItem(keyName); if (!campaign) { - $('#tutorial-popup').modal('show'); {% if not user.is_authenticated %} clearCache(); {% endif %} - localStorage.setItem(keyName, "true"); + {% if asset %} + $('#tutorial-popup').modal('show'); + localStorage.setItem(keyName, "true"); + {% endif %} } } {% elif not user.is_authenticated %}