chore(cleanup): removing redundant rendering logic in telemetry pixel (#26293)

This commit is contained in:
Evan Rusackas
2023-12-18 10:46:55 -07:00
committed by GitHub
parent aafb54d042
commit eb4b41233b

View File

@@ -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}