diff --git a/packages/prop-house-webapp/src/App.tsx b/packages/prop-house-webapp/src/App.tsx index d6cf45971..b1f1d3d54 100644 --- a/packages/prop-house-webapp/src/App.tsx +++ b/packages/prop-house-webapp/src/App.tsx @@ -56,12 +56,6 @@ function App() { const location = useLocation(); const [noActiveCommunity, setNoActiveCommunity] = useState(false); - mixpanel.init(process.env.REACT_APP_MIXPANEL_TOKEN!, { - debug: process.env.REACT_APP_NODE_ENV === 'production' ? false : true, - track_pageview: true, - persistence: 'localStorage', - }); - useEffect(() => { setNoActiveCommunity(false); @@ -77,6 +71,14 @@ function App() { const house = useAppSelector(state => state.propHouse.activeHouse); const showCreatePropPage = round && house; + if (!openGraphCardPath) { + mixpanel.init(process.env.REACT_APP_MIXPANEL_TOKEN!, { + debug: process.env.REACT_APP_NODE_ENV === 'production' ? false : true, + track_pageview: true, + persistence: 'localStorage', + }); + } + return ( <> diff --git a/packages/prop-house-webapp/src/utils/cardServiceUrl.ts b/packages/prop-house-webapp/src/utils/cardServiceUrl.ts index 12524629e..04a4d8c0f 100644 --- a/packages/prop-house-webapp/src/utils/cardServiceUrl.ts +++ b/packages/prop-house-webapp/src/utils/cardServiceUrl.ts @@ -15,5 +15,5 @@ export const cardServiceUrl = (cardtype: CardType, address: string, id?: string) ? process.env.REACT_APP_DEV_CARD_SERVICE_URI : 'http://localhost:3002'; - return new URL(`/remote/${cardtype}/${address}${id ? `/${id}` : ''}/card`, base); + return new URL(`/remote/${cardtype}/${address}${id ? `/${id}` : ''}`, base); };