File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,6 @@ import { useIsDataOps } from "./data/featureflag-query";
2626import { LoadingState } from "@podkit/loading/LoadingState" ;
2727import { isGitpodIo } from "./utils" ;
2828import { trackEvent } from "./Analytics" ;
29- import { useCurrentUser } from "./user-context" ;
30- import { getPrimaryEmail } from "@gitpod/public-api-common/lib/user-utils" ;
3129import { useToast } from "./components/toasts/Toasts" ;
3230import onaWordmark from "./images/ona-wordmark.svg" ;
3331import onaApplication from "./images/ona-application.webp" ;
@@ -352,15 +350,13 @@ const LoginContent = ({
352350const RightProductDescriptionPanel = ( ) => {
353351 const [ email , setEmail ] = useState ( "" ) ;
354352 const [ isSubmitted , setIsSubmitted ] = useState ( false ) ;
355- const user = useCurrentUser ( ) ;
356353 const { toast } = useToast ( ) ;
357354
358355 const handleEmailSubmit = ( e : React . FormEvent ) => {
359356 e . preventDefault ( ) ;
360357 if ( ! email . trim ( ) ) return ;
361358
362- const userEmail = user ? getPrimaryEmail ( user ) || email : email ;
363- trackEvent ( "waitlist_joined" , { email : userEmail , feature : "Ona" } ) ;
359+ trackEvent ( "waitlist_joined" , { email : email , feature : "Ona" } ) ;
364360
365361 setIsSubmitted ( true ) ;
366362
You can’t perform that action at this time.
0 commit comments