Skip to content

Commit

Permalink
chore: add event label to google login button
Browse files Browse the repository at this point in the history
  • Loading branch information
schmanu committed Nov 9, 2023
1 parent 798e998 commit 1888c1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/common/SocialSigner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ export const SocialSigner = ({
const userInfo = socialWalletService?.getUserInfo()
const isDisabled = loginPending || !isMPCLoginEnabled

const isWelcomePage = !!onLogin

const recoverPassword = useCallback(
async (password: string, storeDeviceFactor: boolean) => {
if (!socialWalletService) return
Expand Down Expand Up @@ -136,7 +138,7 @@ export const SocialSigner = ({
</Button>
</Track>
) : (
<Track {...MPC_WALLET_EVENTS.CONNECT_GOOGLE}>
<Track {...MPC_WALLET_EVENTS.CONNECT_GOOGLE} label={isWelcomePage ? 'welcomePage' : 'navBar'}>
<Button
variant="outlined"
onClick={login}
Expand Down

0 comments on commit 1888c1e

Please sign in to comment.