Skip to content

Commit c8a4816

Browse files
committed
Do not send provider in case of provider not in the state
1 parent de8dcd5 commit c8a4816

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redisinsight/ui/src/telemetry/telemetryUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
import { TelemetryEvent } from './events'
2121
import { checkIsAnalyticsGranted } from './checkAnalytics'
2222

23-
export const getProvider = (): string => get(store.getState(), 'connections.instances.connectedInstance.provider', '')
23+
export const getProvider = (): string | undefined => get(store.getState(), 'connections.instances.connectedInstance.provider', undefined)
2424

2525
const TELEMETRY_EMPTY_VALUE = 'none'
2626

0 commit comments

Comments
 (0)