chore(cleanup): removing redundant rendering logic in telemetry pixel (#26293)
This commit is contained in:
parent
aafb54d042
commit
eb4b41233b
|
|
@ -45,8 +45,7 @@ const TelemetryPixel = ({
|
|||
build = 'unknownBuild',
|
||||
}: TelemetryPixelProps): React.ReactElement | null => {
|
||||
const pixelPath = `https://apachesuperset.gateway.scarf.sh/pixel/${PIXEL_ID}/${version}/${sha}/${build}`;
|
||||
return process.env.SCARF_ANALYTICS === 'false' ||
|
||||
process.env.SCARF_ANALYTICS === 'false' ? null : (
|
||||
return process.env.SCARF_ANALYTICS === 'false' ? null : (
|
||||
<img
|
||||
referrerPolicy="no-referrer-when-downgrade"
|
||||
src={pixelPath}
|
||||
|
|
|
|||
Loading…
Reference in New Issue