Skip to content

Commit

Permalink
chore(cleanup): removing redundant rendering logic in telemetry pixel (
Browse files Browse the repository at this point in the history
  • Loading branch information
rusackas authored Dec 18, 2023
1 parent aafb54d commit eb4b412
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions superset-frontend/src/components/TelemetryPixel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit eb4b412

Please sign in to comment.