1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01: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 menuRef = useRef(false);
const origin = useSelector(getOriginOfCurrentTab); const origin = useSelector(getOriginOfCurrentTab);
const history = useHistory(); const history = useHistory();
const isHomePage = location.pathname === DEFAULT_ROUTE;
const isUnlocked = useSelector((state) => state.metamask.isUnlocked); const isUnlocked = useSelector((state) => state.metamask.isUnlocked);
const t = useI18nContext(); const t = useI18nContext();
const chainId = useSelector(getCurrentChainId); const chainId = useSelector(getCurrentChainId);
@ -241,6 +242,7 @@ export const AppHeader = ({ location }) => {
)} )}
{showProductTour && {showProductTour &&
popupStatus && popupStatus &&
isHomePage &&
multichainProductTourStep === 1 ? ( multichainProductTourStep === 1 ? (
<ProductTour <ProductTour
className="multichain-app-header__product-tour" className="multichain-app-header__product-tour"