Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 6a06cc0

Browse files
committed
welcome screen: add analytics to mini avatar upload
1 parent fa726a3 commit 6a06cc0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/structures/HomePage.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ const UserWelcomeTop = () => {
7474
hasAvatar={!!ownProfile.avatarUrl}
7575
hasAvatarLabel={_tDom("Great, that'll help people know it's you")}
7676
noAvatarLabel={_tDom("Add a photo so people know it's you.")}
77-
setAvatarUrl={url => cli.setAvatarUrl(url)}
77+
setAvatarUrl={async url => {
78+
PosthogTrackers.trackInteraction("WebHomeMiniAvatarUploadButton");
79+
await cli.setAvatarUrl(url);
80+
}}
7881
isUserAvatar
7982
>
8083
<BaseAvatar

0 commit comments

Comments
 (0)