Skip to content

Commit

Permalink
allows access via query params
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwk committed Jun 12, 2023
1 parent a6b8198 commit 2d0efb7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/pages/tokenize-form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const TokenizeFormPage: FunctionComponent<TokenizeFormPageProps> = () => {
const target = search ? search : hash
const queryParams = useQuery(target)
const isPopup = Boolean(queryParams.popup)
const allowAccess = Boolean(queryParams.allowAccess)

useEffect(() => {
const _market = getMarketFromString(params.market)
Expand All @@ -38,9 +39,11 @@ const TokenizeFormPage: FunctionComponent<TokenizeFormPageProps> = () => {
/**
* Temporarily redirects to Airtable for KYC
*/
// useEffect(() => {
// window.location.href = 'https://airtable.com/shrQod8lRRlTlWOVH'
// })
useEffect(() => {
if (!allowAccess) {
window.location.href = 'https://airtable.com/shrQod8lRRlTlWOVH'
}
})

return (
<div>
Expand Down

0 comments on commit 2d0efb7

Please sign in to comment.