diff --git a/ui/src/sources/components/SourceStep.tsx b/ui/src/sources/components/SourceStep.tsx index e70c391f7..e0b46c4bc 100644 --- a/ui/src/sources/components/SourceStep.tsx +++ b/ui/src/sources/components/SourceStep.tsx @@ -36,6 +36,8 @@ import {Source, Me} from 'src/types' import {NextReturn} from 'src/types/wizard' const isNewSource = (source: Partial) => !source.id +const isSourceV2 = (source: Partial) => + !source.version || source.version.startsWith('2.') interface Props { notify: typeof notifyAction @@ -98,6 +100,8 @@ class SourceStep extends PureComponent { public render() { const {source} = this.state const {isUsingAuth, onBoarding} = this.props + const sourceIsV2 = isSourceV2(source) + return ( <> {isUsingAuth && onBoarding && this.authIndicator} @@ -115,12 +119,12 @@ class SourceStep extends PureComponent { />