From 9b1ab0ab4e28c413f69ae8f258d5df00970ad50b Mon Sep 17 00:00:00 2001 From: Filip Stoyanov Date: Mon, 16 Dec 2024 16:52:56 +0200 Subject: [PATCH] filip(fix): check only domain for faucet --- src/components/Faucet.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Faucet.tsx b/src/components/Faucet.tsx index c7b9d8ad..c071c09c 100644 --- a/src/components/Faucet.tsx +++ b/src/components/Faucet.tsx @@ -209,9 +209,9 @@ const FaucetInner = ({ return ( {() => { - const isCorrectDomain = - window.location.href === - 'https://docs.cardano.org/cardano-testnets/tools/faucet' + const isCorrectDomain = window.location.href.includes( + 'https://docs.cardano.org', + ) return isCorrectDomain ? (