Skip to content

Commit

Permalink
filip(fix): check only domain for faucet
Browse files Browse the repository at this point in the history
  • Loading branch information
fstoqnov-iohk committed Dec 16, 2024
1 parent 3e8f45e commit 9b1ab0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Faucet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ const FaucetInner = ({
return (
<BrowserOnly>
{() => {
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 ? (
<Fragment>
Expand Down

1 comment on commit 9b1ab0a

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for cardano-documentation ready!

✅ Preview
https://cardano-documentation-g5neaqbsn-iog.vercel.app
https://cardano-documentation.vercel.app

Built with commit 9b1ab0a.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.