Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/web/contexts/Analytics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import logEvent, {
ActionType,
AnalyticsEventImportance,
CCAEventData,
AnalyticsContext,
AnalyticsEventContext,
} from 'libs/base-ui/utils/logEvent';
import { ReactNode, createContext, useCallback, useContext, useMemo } from 'react';

Expand All @@ -30,7 +30,7 @@ export function useAnalytics() {

type AnalyticsProviderProps = {
children?: ReactNode;
context: AnalyticsContext;
context: string | AnalyticsEventContext;
};

export default function AnalyticsProvider({ children, context }: AnalyticsProviderProps) {
Expand Down
2 changes: 1 addition & 1 deletion libs/base-ui/utils/logEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ type CCAEventData = {
message_id?: number;
response_helpful?: boolean;
address?: string;
context?: AnalyticsEventContext;
context?: string | AnalyticsEventContext;
userId?: string;
error?: string;
wallet_type?: string;
Expand Down