Skip to content

Commit 368aa53

Browse files
authored
fix type error (#1691)
1 parent aaa3dd7 commit 368aa53

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/web/contexts/Analytics.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import logEvent, {
44
ActionType,
55
AnalyticsEventImportance,
66
CCAEventData,
7-
AnalyticsContext,
7+
AnalyticsEventContext,
88
} from 'libs/base-ui/utils/logEvent';
99
import { ReactNode, createContext, useCallback, useContext, useMemo } from 'react';
1010

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

3131
type AnalyticsProviderProps = {
3232
children?: ReactNode;
33-
context: AnalyticsContext;
33+
context: string | AnalyticsEventContext;
3434
};
3535

3636
export default function AnalyticsProvider({ children, context }: AnalyticsProviderProps) {

libs/base-ui/utils/logEvent.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ type CCAEventData = {
8484
message_id?: number;
8585
response_helpful?: boolean;
8686
address?: string;
87-
context?: AnalyticsEventContext;
87+
context?: string | AnalyticsEventContext;
8888
userId?: string;
8989
error?: string;
9090
wallet_type?: string;

0 commit comments

Comments
 (0)