From a0730651734181b23b56fa76ad8be1fd148b6183 Mon Sep 17 00:00:00 2001 From: gettinToasty Date: Tue, 26 Apr 2022 12:03:22 -0700 Subject: [PATCH] Only default to AlertBox if a user is logged in (#4133) * Only default to AlertBox if a user is logged in * Change from Screen Capture to Media --- .../windows/source-showcase/useSourceShowcase.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/components-react/windows/source-showcase/useSourceShowcase.tsx b/app/components-react/windows/source-showcase/useSourceShowcase.tsx index 0918489a7bed..8d18f6f388a8 100644 --- a/app/components-react/windows/source-showcase/useSourceShowcase.tsx +++ b/app/components-react/windows/source-showcase/useSourceShowcase.tsx @@ -22,7 +22,9 @@ type TInspectableSource = TSourceType | WidgetType | 'streamlabel' | 'app_source */ class SourceShowcaseModule { state = { - inspectedSource: 'AlertBox' as TInspectableSource, + inspectedSource: (Services.UserService.views.isLoggedIn + ? 'AlertBox' + : 'ffmpeg_source') as TInspectableSource, inspectedAppId: '', inspectedAppSourceId: '', };