Skip to content

Commit 2d26430

Browse files
authored
Fix Mixpanel event for DeFi button (#2952)
1 parent d1a3232 commit 2d26430

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ui/snippets/topBar/DeFiDropdown.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const DeFiDropdown = () => {
2222
const source = getPageType(router.pathname);
2323

2424
const handleClick = React.useCallback((content: string) => {
25-
mixpanel.logEvent(mixpanel.EventTypes.BUTTON_CLICK, { Content: content, Source: source });
25+
mixpanel.logEvent(mixpanel.EventTypes.BUTTON_CLICK, { Content: `DeFi button: ${ content }`, Source: source });
2626
}, [ source ]);
2727

2828
if (!feature.isEnabled) {
@@ -56,7 +56,6 @@ const DeFiDropdown = () => {
5656
</PopoverContent>
5757
</PopoverRoot>
5858
) : (
59-
6059
<Link
6160
href={
6261
items[0].dappId ?

ui/snippets/topBar/DeFiDropdownItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const DeFiDropdownItem = ({ item }: Props) => {
2020
w="100%"
2121
h="34px"
2222
variant="menu"
23+
onClick={ item.onClick }
2324
>
2425
<IconSvg name={ item.icon } boxSize={ 5 } mr={ 2 }/>
2526
<Text as="span" fontSize="sm">{ item.text }</Text>

0 commit comments

Comments
 (0)