From 941e73188dab96aff622734c3d9f275f87911eb5 Mon Sep 17 00:00:00 2001
From: Michael Matloka
Date: Mon, 18 Nov 2024 22:31:53 +0100
Subject: [PATCH] Fix typing
---
frontend/src/scenes/max/Intro.tsx | 2 +-
frontend/src/scenes/max/maxGlobalLogic.ts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/frontend/src/scenes/max/Intro.tsx b/frontend/src/scenes/max/Intro.tsx
index 096e670d25aa2..c43cd86b53d2a 100644
--- a/frontend/src/scenes/max/Intro.tsx
+++ b/frontend/src/scenes/max/Intro.tsx
@@ -42,7 +42,7 @@ export function Intro(): JSX.Element {
Your data won't be used for training models.
-
+ acceptDataProcessing()}>
Got it, I accept OpenAI processing data
diff --git a/frontend/src/scenes/max/maxGlobalLogic.ts b/frontend/src/scenes/max/maxGlobalLogic.ts
index c3d9f2443479c..e082aa91e6d95 100644
--- a/frontend/src/scenes/max/maxGlobalLogic.ts
+++ b/frontend/src/scenes/max/maxGlobalLogic.ts
@@ -5,7 +5,7 @@ import type { maxGlobalLogicType } from './maxGlobalLogicType'
export const maxGlobalLogic = kea([
path(['scenes', 'max', 'maxGlobalLogic']),
actions({
- acceptDataProcessing: (testOnlyOverride) => ({ testOnlyOverride }),
+ acceptDataProcessing: (testOnlyOverride?: boolean) => ({ testOnlyOverride }),
}),
reducers({
dataProcessingAccepted: [