Skip to content

Commit 9d583ee

Browse files
only send email what user submitted
1 parent 7c21472 commit 9d583ee

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

components/dashboard/src/Login.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ import { useIsDataOps } from "./data/featureflag-query";
2626
import { LoadingState } from "@podkit/loading/LoadingState";
2727
import { isGitpodIo } from "./utils";
2828
import { trackEvent } from "./Analytics";
29-
import { useCurrentUser } from "./user-context";
30-
import { getPrimaryEmail } from "@gitpod/public-api-common/lib/user-utils";
3129
import { useToast } from "./components/toasts/Toasts";
3230
import onaWordmark from "./images/ona-wordmark.svg";
3331
import onaApplication from "./images/ona-application.webp";
@@ -352,15 +350,13 @@ const LoginContent = ({
352350
const 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

0 commit comments

Comments
 (0)