diff --git a/src/components/Superfest/SuperfestPage/CTA/MissionCTA.tsx b/src/components/Superfest/SuperfestPage/CTA/MissionCTA.tsx index 66d1891f2..4e5937e24 100644 --- a/src/components/Superfest/SuperfestPage/CTA/MissionCTA.tsx +++ b/src/components/Superfest/SuperfestPage/CTA/MissionCTA.tsx @@ -39,6 +39,7 @@ interface MissionCtaProps { variableWeeklyAPY?: boolean; signature?: boolean; rewardRange?: string; + isTurtleMember?: boolean; } export const MissionCTA = ({ @@ -47,6 +48,7 @@ export const MissionCTA = ({ variableWeeklyAPY, signature, rewardRange, + isTurtleMember, }: MissionCtaProps) => { const { t } = useTranslation(); const { trackEvent } = useUserTracking(); @@ -86,7 +88,7 @@ export const MissionCTA = ({ ) : undefined} - {signature && } + {signature && } {CTAs.map((CTA: CTALinkInt, i: number) => { return ( { +export const SignatureCTA = ({ + signature, + isTurtleMember, +}: SignatureCtaProps) => { const { t } = useTranslation(); const { trackEvent } = useUserTracking(); const { account } = useAccounts(); @@ -35,13 +38,6 @@ export const SignatureCTA = ({ signature }: SignatureCtaProps) => { const [messagedHasBeenSigned, setMessagedHasBeenSigned] = useState(false); const { signMessageAsync } = useSignMessage(); - const { - isMember, - isLoading: isMemberCheckLoading, - isSuccess: isMemberCheckSuccess, - } = useTurtleMember({ - userAddress: account?.address, - }); const handleSignatureClick = async () => { try { @@ -107,7 +103,7 @@ export const SignatureCTA = ({ signature }: SignatureCtaProps) => { return ( <> - {(messagedHasBeenSigned || isMember) && ( + {(messagedHasBeenSigned || isTurtleMember) && ( { )} - {!messagedHasBeenSigned && !isMember && ( + {!messagedHasBeenSigned && !isTurtleMember && ( diff --git a/src/components/Superfest/SuperfestPage/SuperfestMisisonPage.tsx b/src/components/Superfest/SuperfestPage/SuperfestMisisonPage.tsx index 886691194..7da3b57d0 100644 --- a/src/components/Superfest/SuperfestPage/SuperfestMisisonPage.tsx +++ b/src/components/Superfest/SuperfestPage/SuperfestMisisonPage.tsx @@ -70,6 +70,7 @@ export const SuperfestMissionPage = ({ CTAs={CTAsWithAPYs} variableWeeklyAPY={points > 0 && rewardType === 'weekly'} signature={missionType === 'turtle_signature'} + isTurtleMember={isMember} rewardRange={rewardRange} /> {/* Subtitle and description */} diff --git a/src/components/Widgets/WidgetEvents.tsx b/src/components/Widgets/WidgetEvents.tsx index 14e3fd18c..8d62b309a 100644 --- a/src/components/Widgets/WidgetEvents.tsx +++ b/src/components/Widgets/WidgetEvents.tsx @@ -82,13 +82,13 @@ export function WidgetEvents() { if (update.process && update.route) { if (update.process.txHash !== lastTxHashRef.current) { lastTxHashRef.current = update.process.txHash; - trackTransaction({ - category: TrackingCategory.WidgetEvent, - action: TrackingAction.OnRouteExecutionUpdated, - label: 'execution_update', - data, - enableAddressable: true, - }); + // trackTransaction({ + // category: TrackingCategory.WidgetEvent, + // action: TrackingAction.OnRouteExecutionUpdated, + // label: 'execution_update', + // data, + // enableAddressable: true, + // }); } } }; diff --git a/src/hooks/useTurtleMember.ts b/src/hooks/useTurtleMember.ts index 3f8136b79..583edbfd4 100644 --- a/src/hooks/useTurtleMember.ts +++ b/src/hooks/useTurtleMember.ts @@ -31,6 +31,7 @@ export const useTurtleMember = ({ return false; } catch (err) { console.log(err); + return false; } }, enabled: !!userAddress, @@ -53,10 +54,11 @@ export const useTurtleMember = ({ return false; } catch (err) { console.log(err); + return false; } }, enabled: !!userAddress, - refetchInterval: 1000 * 60 * 60, + refetchInterval: 1000 * 60 * 60 * 2, }); return {