From 05f4c22f7cf463febb9e7721019f62110c0b444c Mon Sep 17 00:00:00 2001 From: andreas-unleash Date: Thu, 26 Oct 2023 14:45:29 +0300 Subject: [PATCH] fix: do not track empty strings in playground token input (#5159) do not track empty strings in playground token input Signed-off-by: andreas-unleash --- .../src/component/playground/Playground/AdvancedPlayground.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/component/playground/Playground/AdvancedPlayground.tsx b/frontend/src/component/playground/Playground/AdvancedPlayground.tsx index b1cf2701eb..5fc8f0dcbe 100644 --- a/frontend/src/component/playground/Playground/AdvancedPlayground.tsx +++ b/frontend/src/component/playground/Playground/AdvancedPlayground.tsx @@ -184,7 +184,7 @@ export const AdvancedPlayground: VFC<{ setHasFormBeenSubmitted(true); - if (token) { + if (token && token !== '') { trackEvent('playground_token_input_used'); }