Skip to content

Commit

Permalink
refactor: Update username signup flow and analytics script
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Mar 3, 2025
1 parent d87a0b0 commit 9ed1e77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions apps/web/src/components/Shared/Auth/Signup/ChooseUsername.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
FaceFrownIcon,
FaceSmileIcon
} from "@heroicons/react/24/outline";
import { APP_NAME } from "@hey/data/constants";
import { APP_NAME, HEY_APP } from "@hey/data/constants";
import { Errors } from "@hey/data/errors";
import { Events } from "@hey/data/events";
import { Regex } from "@hey/data/regex";
Expand All @@ -19,7 +19,6 @@ import {
} from "@hey/indexer";
import { Button, Form, Input, useZodForm } from "@hey/ui";
import { account as accountMetadata } from "@lens-protocol/metadata";
import Script from "next/script";
import type { FC } from "react";
import { useState } from "react";
import toast from "react-hot-toast";
Expand Down Expand Up @@ -90,7 +89,9 @@ const ChooseUsername: FC = () => {
await handleWrongNetwork();

const challenge = await loadChallenge({
variables: { request: { onboardingUser: { wallet: address } } }
variables: {
request: { onboardingUser: { app: HEY_APP, wallet: address } }
}
});

if (!challenge?.data?.challenge?.text) {
Expand Down Expand Up @@ -145,11 +146,6 @@ const ChooseUsername: FC = () => {

return (
<div className="space-y-5">
<Script
id="lemon-js"
src="https://assets.lemonsqueezy.com/lemon.js"
strategy="afterInteractive"
/>
<SignupMessage />
<Form
className="space-y-5 pt-3"
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class HeyDocument extends Document {
{/* Simple Analytics */}
<Script
async
src="https://scripts.simpleanalyticscdn.com/latest.js"
src="https://scripts.simpleanalyticscdn.com/latest.dev.js"
/>
</Head>
<body>
Expand Down

0 comments on commit 9ed1e77

Please sign in to comment.