diff --git a/frontend/__snapshots__/scenes-other-billing-v2--billing-v-2--dark.png b/frontend/__snapshots__/scenes-other-billing-v2--billing-v-2--dark.png index b760d16fd5592..142d5b7816f45 100644 Binary files a/frontend/__snapshots__/scenes-other-billing-v2--billing-v-2--dark.png and b/frontend/__snapshots__/scenes-other-billing-v2--billing-v-2--dark.png differ diff --git a/frontend/src/lib/components/Support/SupportForm.tsx b/frontend/src/lib/components/Support/SupportForm.tsx index a7ff431855397..32d6f72ff5675 100644 --- a/frontend/src/lib/components/Support/SupportForm.tsx +++ b/frontend/src/lib/components/Support/SupportForm.tsx @@ -1,6 +1,5 @@ import { IconBug, IconInfo, IconQuestion } from '@posthog/icons' import { - LemonBanner, LemonInput, LemonSegmentedButton, LemonSegmentedButtonOption, @@ -59,7 +58,6 @@ export function SupportForm(): JSX.Element | null { // the support model can be shown when logged out, file upload is not offered to anonymous users const { user } = useValues(userLogic) // only allow authentication issues for logged out users - const blockNonAuthIssues = ![null, 'login'].includes(supportLogic.values.sendSupportRequest.target_area) && !user const dropRef = useRef(null) @@ -127,7 +125,15 @@ export function SupportForm(): JSX.Element | null { - + {(props) => (
- {blockNonAuthIssues ? ( - - Please login to your account before opeing a ticket unrelated to authentication issues. - - ) : null} void }): JSX.Eleme const { closeSupportForm } = useActions(supportLogic) const { isCloudOrDev } = useValues(preflightLogic) const { sidePanelAvailable } = useValues(sidePanelStateLogic) - const { user } = useValues(userLogic) - // only allow authentication issues for logged out users - const blockNonAuthIssues = ![null, 'login'].includes(supportLogic.values.sendSupportRequest.target_area) && !user useEffect(() => { if (!isCloudOrDev) { @@ -40,17 +36,7 @@ function SupportModal({ onAfterClose }: { onAfterClose: () => void }): JSX.Eleme Cancel - + Submit
diff --git a/frontend/src/lib/components/Support/supportLogic.ts b/frontend/src/lib/components/Support/supportLogic.ts index 3388cd3af5e3c..7679f614c868e 100644 --- a/frontend/src/lib/components/Support/supportLogic.ts +++ b/frontend/src/lib/components/Support/supportLogic.ts @@ -338,7 +338,10 @@ export const supportLogic = kea([ } }, openSupportForm: async ({ name, email, kind, target_area, severity_level, message }) => { - const area = target_area ?? getURLPathToTargetArea(window.location.pathname) + let area = target_area ?? getURLPathToTargetArea(window.location.pathname) + if (!userLogic.values.user) { + area = 'login' + } kind = kind ?? 'support' actions.resetSendSupportRequest({ name: name ?? '',