fix(dashboard): improvements for both funnel and conversion chart
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { op } from '@/utils/op';
|
||||
import { useLocation, useRouteContext } from '@tanstack/react-router';
|
||||
import { useRouteContext } from '@tanstack/react-router';
|
||||
import { SparklesIcon } from 'lucide-react';
|
||||
import { Button } from './ui/button';
|
||||
|
||||
@@ -12,13 +12,15 @@ export function FeedbackButton() {
|
||||
icon={SparklesIcon}
|
||||
onClick={() => {
|
||||
op.track('feedback_button_clicked');
|
||||
if ('uj' in window) {
|
||||
(window.uj as any).identify({
|
||||
if ('uj' in window && window.uj !== undefined) {
|
||||
(window as any).uj.identify({
|
||||
id: context.session?.userId,
|
||||
firstName: context.session?.user?.firstName,
|
||||
email: context.session?.user?.email,
|
||||
});
|
||||
(window.uj as any).showWidget();
|
||||
setTimeout(() => {
|
||||
(window as any).uj.showWidget();
|
||||
}, 10);
|
||||
}
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user