1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

Show product tour only on home page (#19938)

* show product tour only on home page

* updated variable name

---------

Co-authored-by: David Walsh <davidwalsh83@gmail.com>
This commit is contained in:
Nidhi Kumari 2023-07-12 17:03:58 +05:30 committed by GitHub
parent 5736e670f7
commit 1ea934165b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,6 +68,7 @@ export const AppHeader = ({ location }) => {
const menuRef = useRef(false);
const origin = useSelector(getOriginOfCurrentTab);
const history = useHistory();
const isHomePage = location.pathname === DEFAULT_ROUTE;
const isUnlocked = useSelector((state) => state.metamask.isUnlocked);
const t = useI18nContext();
const chainId = useSelector(getCurrentChainId);
@ -241,6 +242,7 @@ export const AppHeader = ({ location }) => {
)}
{showProductTour &&
popupStatus &&
isHomePage &&
multichainProductTourStep === 1 ? (
<ProductTour
className="multichain-app-header__product-tour"